diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-02 21:14:27 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-02 21:14:27 +0000 |
commit | ddda1f5bb98267b8789a97dad3506cb2166d74b6 (patch) | |
tree | 9790f8a3a173fc499f62ad3b838e679dcffa6e6d /ace/Proactor.cpp | |
parent | 5c99dbeed68c9bef52273429dd9fe3268417c0fc (diff) | |
download | ATCD-ddda1f5bb98267b8789a97dad3506cb2166d74b6.tar.gz |
Reenabled thread manager of Proactor to wait on its threads.
Replace a magic number with WAIT_TIMEOUT.
Diffstat (limited to 'ace/Proactor.cpp')
-rw-r--r-- | ace/Proactor.cpp | 6 |
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; |