summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-02 21:14:27 +0000
committernw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-12-02 21:14:27 +0000
commitddda1f5bb98267b8789a97dad3506cb2166d74b6 (patch)
tree9790f8a3a173fc499f62ad3b838e679dcffa6e6d
parent5c99dbeed68c9bef52273429dd9fe3268417c0fc (diff)
downloadATCD-ddda1f5bb98267b8789a97dad3506cb2166d74b6.tar.gz
Reenabled thread manager of Proactor to wait on its threads.
Replace a magic number with WAIT_TIMEOUT.
-rw-r--r--ace/Proactor.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/ace/Proactor.cpp b/ace/Proactor.cpp
index 92ee4a9b5b5..70eca5646d2 100644
--- a/ace/Proactor.cpp
+++ b/ace/Proactor.cpp
@@ -239,9 +239,6 @@ ACE_Proactor::ACE_Proactor (size_t number_of_threads,
// set the timer queue
this->timer_queue (tq);
- // Don;t wait for the timer thread.
- this->thr_mgr_.wait_on_exit (0);
-
// Create the timer handler
ACE_NEW (this->timer_handler_, ACE_Proactor_Timer_Handler (*this));
@@ -551,8 +548,7 @@ ACE_Proactor::handle_events (unsigned long milli_seconds)
{
errno = ::GetLastError ();
- // @@ What's the WIN32 constant for timeout (258)?!?!?!
- if (errno == 258)
+ if (errno == WAIT_TIMEOUT)
{
errno = ETIME;
return 0;