diff options
author | Steve Huston <shuston@riverace.com> | 2007-11-24 00:24:56 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 2007-11-24 00:24:56 +0000 |
commit | 01371070e2ad52128d8468dd3af5c23e470ffe92 (patch) | |
tree | a08c5ee4f62135da1fc19f7e0ce47ce5fc471ad3 /ACE | |
parent | 718c3c0489831244911586ab87c95ea054026c99 (diff) | |
download | ATCD-01371070e2ad52128d8468dd3af5c23e470ffe92.tar.gz |
ChangeLogTag:Sat Nov 24 00:23:34 UTC 2007 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ACE')
-rw-r--r-- | ACE/ChangeLog | 6 | ||||
-rw-r--r-- | ACE/ace/Reactor.h | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index bef96d514e3..c662f7328f5 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,9 @@ +Sat Nov 24 00:23:34 UTC 2007 Steve Huston <shuston@riverace.com> + + * ace/Reactor.h: Clarified the workings of the optional hook function + that can be passed to event loop methods. Thanks to Andre Kostur + for this idea. + Fri Nov 23 19:38:54 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * bin/MakeProjectCreator/config/vc8_warnings.mpb: diff --git a/ACE/ace/Reactor.h b/ACE/ace/Reactor.h index c916f7d9b2e..8e5dc051121 100644 --- a/ACE/ace/Reactor.h +++ b/ACE/ace/Reactor.h @@ -75,11 +75,14 @@ public: }; /** - * You can add a hook to various run_event methods and the hook will - * be called after handling every reactor event. If this function - * returns 0, <run_reactor_event_loop> will check for the return - * value of <handle_event>. If it is -1, the - * <run_reactor_event_loop> will return (pre-maturely.) + * You can specify a hook function to event-handling methods that will + * be called after each iteration of event handling. If the hook function + * returns a non-zero value, the event loop will immediately resume + * waiting for the next event(s) to process without checking the error + * status of the just-completed iteration of event handling or the + * end-of-loop indication. If the hook function returns 0, the event + * handling error status and the end-of-loop indication will be checked + * as normal, just as if there is no hook function specified. */ typedef int (*REACTOR_EVENT_HOOK)(ACE_Reactor *); |