diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-24 22:16:31 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-24 22:16:31 +0000 |
commit | cca88db1730dc8f5b1418bdd5c609a844891ae06 (patch) | |
tree | 69fa0bda0e6c33847904b5afd91a576c28d4f72b /ace/Reactor.i | |
parent | ac21b1c942a3aa372c24f21cec18f0213baaa072 (diff) | |
download | ATCD-cca88db1730dc8f5b1418bdd5c609a844891ae06.tar.gz |
ChangeLogTag:Mon Dec 24 08:08:40 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'ace/Reactor.i')
-rw-r--r-- | ace/Reactor.i | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/ace/Reactor.i b/ace/Reactor.i index 42f1b53795b..d0c5610a22e 100644 --- a/ace/Reactor.i +++ b/ace/Reactor.i @@ -30,10 +30,12 @@ ACE_INLINE int ACE_Reactor::run_event_loop (void) { ACE_TRACE ("ACE_Reactor::run_event_loop"); + ACE_Reactor *r = ACE_Reactor::instance (); - return - ACE_Reactor::instance () - ->run_reactor_event_loop (ACE_Reactor::check_reconfiguration); + if (r == 0) + return -1; + + return r->run_reactor_event_loop (ACE_Reactor::check_reconfiguration); } // Run the event loop until the <ACE_Reactor::handle_events> @@ -44,11 +46,13 @@ ACE_INLINE int ACE_Reactor::run_event_loop (ACE_Time_Value &tv) { ACE_TRACE ("ACE_Reactor::run_event_loop"); + ACE_Reactor *r = ACE_Reactor::instance (); + + if (r == 0) + return -1; - return - ACE_Reactor::instance () - ->run_reactor_event_loop (tv, - ACE_Reactor::check_reconfiguration); + return r->run_reactor_event_loop + (tv, ACE_Reactor::check_reconfiguration); } // Run the event loop until the <ACE_Reactor::alertable_handle_events> method @@ -58,10 +62,12 @@ ACE_INLINE int ACE_Reactor::run_alertable_event_loop (void) { ACE_TRACE ("ACE_Reactor::run_alertable_event_loop"); + ACE_Reactor *r = ACE_Reactor::instance (); - return - ACE_Reactor::instance () - ->run_alertable_reactor_event_loop (ACE_Reactor::check_reconfiguration); + if (r == 0) + return -1; + + return r->run_alertable_reactor_event_loop (ACE_Reactor::check_reconfiguration); } // Run the event loop until the <ACE_Reactor::alertable_handle_events> @@ -72,11 +78,13 @@ ACE_INLINE int ACE_Reactor::run_alertable_event_loop (ACE_Time_Value &tv) { ACE_TRACE ("ACE_Reactor::run_alertable_event_loop"); + ACE_Reactor *r = ACE_Reactor::instance (); + + if (r == 0) + return -1; - return - ACE_Reactor::instance () - ->run_alertable_reactor_event_loop (tv, - ACE_Reactor::check_reconfiguration); + return r->run_alertable_reactor_event_loop + (tv, ACE_Reactor::check_reconfiguration); } ACE_INLINE void |