summaryrefslogtreecommitdiff
path: root/ace/WFMO_Reactor.cpp
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-27 21:40:15 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-10-27 21:40:15 +0000
commitcb94ed1d7455136ee1ba450f44a669ec0471613c (patch)
tree42361e847150afd2602f0ebad37886e2a2570b3a /ace/WFMO_Reactor.cpp
parente6118d60345a7673421eeebc348bb5037a9cbf97 (diff)
downloadATCD-cb94ed1d7455136ee1ba450f44a669ec0471613c.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/WFMO_Reactor.cpp')
-rw-r--r--ace/WFMO_Reactor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/WFMO_Reactor.cpp b/ace/WFMO_Reactor.cpp
index 325956c43f9..cde55a5f851 100644
--- a/ace/WFMO_Reactor.cpp
+++ b/ace/WFMO_Reactor.cpp
@@ -1197,7 +1197,7 @@ ACE_WFMO_Reactor::upcall (ACE_Event_Handler *event_handler,
return result;
}
-
+int
ACE_WFMO_Reactor::update_state (void)
{
// This GUARD is necessary since we are updating shared state.
@@ -1250,6 +1250,11 @@ ACE_WFMO_Reactor::update_state (void)
// change thread
this->waiting_to_change_state_.signal ();
}
+ // This is if we were woken up explicitily by the user and there are
+ // no state changes required.
+ else if (this->active_threads_ == 0)
+ // Turn off <wakeup_all_threads_>
+ this->wakeup_all_threads_.reset ();
return 0;
}