diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-22 23:47:15 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-02-22 23:47:15 +0000 |
commit | 4586212c0037cedfd47e7d5d7145b34b02e0008f (patch) | |
tree | 6260d1d4d1c831c2b3293aa2ca0a41c348b4b35b /ace/TP_Reactor.cpp | |
parent | d6f9eb5b217aea57bdb60d59abfd26a11ed4416e (diff) | |
download | ATCD-4586212c0037cedfd47e7d5d7145b34b02e0008f.tar.gz |
ChangeLogTag: Thu Feb 22 12:28:15 2001 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/TP_Reactor.cpp')
-rw-r--r-- | ace/TP_Reactor.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/ace/TP_Reactor.cpp b/ace/TP_Reactor.cpp index 6957e50a8e9..300a0d1c135 100644 --- a/ace/TP_Reactor.cpp +++ b/ace/TP_Reactor.cpp @@ -87,22 +87,22 @@ ACE_TP_Reactor::handle_events (ACE_Time_Value *max_wait_time) // Update the countdown to reflect time waiting for the token. countdown.update (); - switch (result) + // Check for timeouts and errors. + if (result == -1) { - case 2: - ACE_MT (this->token_.release ()); - return 0; - case -1: if (errno == ETIME) return 0; - return -1; + else + return -1; } - // After acquiring the lock, check if we have been deactivated. + // After acquiring the lock, check if we have been deactivated. If + // we are deactivated, simply return without handling further + // events. if (this->deactivated_) { ACE_MT (this->token_.release ()); - return -1; + return 0; } // We got the lock, lets handle some events. Note: this method will @@ -143,7 +143,6 @@ ACE_TP_Reactor::handle_events (ACE_Time_Value *max_wait_time) } return result; - } int |