diff options
author | Steve Huston <shuston@riverace.com> | 1998-10-15 21:45:31 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1998-10-15 21:45:31 +0000 |
commit | 80c4045c9521c77dc6024a98b52b4036e46052f3 (patch) | |
tree | 2b2b7a755b415a0e55e74684efb1bfe4d835c230 | |
parent | 633c266d3f57d8eebc5e4162f483ecc2fbc2298f (diff) | |
download | ATCD-80c4045c9521c77dc6024a98b52b4036e46052f3.tar.gz |
Changed ACE_THR_OP macro to not remove a thread if an operation fails with
ENOTSUP.
-rw-r--r-- | ace/Thread_Manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/Thread_Manager.cpp b/ace/Thread_Manager.cpp index 49c3868f282..ea91a85ac1b 100644 --- a/ace/Thread_Manager.cpp +++ b/ace/Thread_Manager.cpp @@ -1048,9 +1048,9 @@ ACE_Thread_Manager::remove_thr_all (void) // Factor out some common behavior to simplify the following methods. #define ACE_THR_OP(OP,STATE) \ int result = OP (td->thr_handle_); \ - if (result != 0) { \ - this->thr_to_be_removed_.enqueue_tail (td); \ - errno = result; \ + if (result == -1) { \ + if (errno != ENOTSUP) \ + this->thr_to_be_removed_.enqueue_tail (td); \ return -1; \ } \ else { \ |