<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff size=2>Hi 
Philippe,</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff size=2>You 
should be aware of the issues due to delayed handler removal, esp in the case of 
ACE_WFMO_Reactor. You'd probably do better removing the DONT_CALL flag from 
remove_handler() and wait until the handle_close() callback(s) completed before 
registering to the new reactor.</FONT></SPAN></DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff size=2>Please 
see C++NPv2 chapters 3 and 4 for more details on these issues. You can learn 
more about C++NPv2 at <A 
href="http://www.riverace.com/acebooks/index.htm#cnpv2">http://www.riverace.com/acebooks/index.htm#cnpv2</A></FONT></SPAN></DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff size=2>Best 
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=139570217-29112007><FONT face=Arial color=#0000ff 
size=2>-Steve</FONT></SPAN></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>--<BR>Steve Huston, Riverace Corporation<BR>Want to take ACE 
training on YOUR schedule?<BR>See <A 
href="http://www.riverace.com/training.htm">http://www.riverace.com/training.htm</A><BR></FONT></P>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  ace-users-bounces@cse.wustl.edu [mailto:ace-users-bounces@cse.wustl.edu] <B>On 
  Behalf Of </B>ZXERASOGE002, Ext<BR><B>Sent:</B> Thursday, November 29, 2007 
  4:24 AM<BR><B>To:</B> ace-users@cse.wustl.edu<BR><B>Subject:</B> [ace-users] 
  Changing the reactor of a svc_handler<BR><BR></FONT></DIV>
  <P><FONT face=Arial size=2>Hi,</FONT> <BR><FONT face=Arial size=2>I would like 
  to do the following, can you tell me if the idea is correct, risky or even 
  impossible ?</FONT> </P>
  <P><FONT face=Arial size=2>I have a subclass of Svc_Handler, which is bound to 
  a reactor. At some point, I would like to affect it to another reactor, which 
  is running in another thread. To do this, I would first detach the handler 
  from the first reactor with Reactor::remove_handler( myhandle, ALL_EVENTS_MASK 
  | DONT_CALL), pass a pointer on my handler to a second thread through a 
  message queue, and then reattach the handler to the second reactor using 
  Reactor::register_handler( myhandle, oldmask).</FONT></P>
  <P><FONT face=Arial size=2>Is this a correct way to change my handler of 
  thread/reactor ? Are there any potential problem I should be aware of while 
  doing this ?</FONT></P>
  <P><FONT face=Arial size=2>regards,</FONT> </P>
  <P><FONT face=Arial size=2>---</FONT> <BR><FONT face=Arial size=2>Philippe 
  David</FONT> <BR><FONT face=Arial size=2>SOGETI High Tech</FONT> </P>
  <TABLE>
    <TBODY>
    <TR>
      <TD bgColor=#ffffff><FONT color=#000000>Ce courriel (incluant ses 
        eventuelles pieces jointes) peut contenir des informations 
        confidentielles et/ou protegees ou dont la diffusion est restreinte. Si 
        vous avez recu ce courriel par erreur, vous ne devez ni le copier, ni 
        l'utiliser, ni en divulguer le contenu a quiconque. Merci d'en avertir 
        immediatement l'expediteur et d'effacer ce courriel de votre systeme. 
        Astrium decline toute responsabilite en cas de corruption par virus, 
        d'alteration ou de falsification de ce courriel lors de sa transmission 
        par voie electronique.<BR></FONT></TD></TR></TBODY></TABLE>
  <TABLE>
    <TBODY>
    <TR>
      <TD bgColor=#ffffff><FONT color=#000000>This email (including any 
        attachments) may contain confidential and/or privileged information or 
        information otherwise protected from disclosure. If you are not the 
        intended recipient, please notify the sender immediately, do not copy 
        this message or any attachments and do not use it for any purpose or 
        disclose its content to any person, but delete this message and any 
        attachments from your system. Astrium disclaims any and all liability if 
        this email transmission was virus corrupted, altered or 
        falsified.<BR>---------------------------------------------------------------------<BR>Astrium 
        SAS (393 341 516 RCS Paris) - Siege social: 6 rue Laurent Pichat, 75016 
        Paris, France<BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>