[Ace-users] [ace-users] ACE Service Configurator

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Fri Nov 9 07:43:34 CST 2007


Hi,

        Thanks for using the PRF.

>ACE VERSION: 5.5.10
>HOST MACHINE and OPERATING SYSTEM:    winxp
>COMPILER NAME AND VERSION (AND PATCHLEVEL): g++
>THE $ACE_ROOT/ace/config.h FILE : #include "ace/config-win32.h"
>THE $ACE_ROOT/include/makeinclude/platform_macros.GNU
>FILE :platform_macros.GNU
>DESCRIPTION:
>APG book,19.5 Reconfiguring Services During Execution:
>1. On systems that have POSIX signal capability, send the process a
>SIGHUP
>signal. For this to work, the program must be executing the Reactor
>event
>loop. Since this is often the case, the requirement is not usually a
>problem.
>Note that the signal number to use for this can be changed when the
>program
>starts by specifying the -s command line option (Table 19.1 on page
>425).
>2. The program itself can call ACE_Service_Config::reconfigure()
>directly. This is the favored option on Windows (since POSIX signals
>are not
>available) and can also be used for programs that are not running the
>Reactor
>event loop. To make this more "automatic" on Windows, it's possible to
>create
>a file/directory change event, register the event handle with the
>ACE_WFMO_Reactor, and use the event callback to do the
>reconfiguration.
>
>What`s meaning  "create
>a file/directory change event" in second method?

Please see

ACE_ROOT/examples/Reactor/WFMO_Reactor/Directory_Changes.cpp

for an example.

Thanks,

        Doug


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list