diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-28 19:17:52 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-28 19:17:52 +0000 |
commit | b65c8507338c22442535ab9031818e994222adde (patch) | |
tree | f44cfdf6b7dbc3671e76528aef8c789b52338a2a /ace/Thread_Manager.i | |
parent | f708b72fe1cd49f20cbd9347cc95d71d2f0b32d7 (diff) | |
download | ATCD-b65c8507338c22442535ab9031818e994222adde.tar.gz |
Changed wait on exit behavior (exp. Win32.) See ChangeLog-97c.
Diffstat (limited to 'ace/Thread_Manager.i')
-rw-r--r-- | ace/Thread_Manager.i | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/ace/Thread_Manager.i b/ace/Thread_Manager.i index 70109321378..09a4fa9ea30 100644 --- a/ace/Thread_Manager.i +++ b/ace/Thread_Manager.i @@ -3,8 +3,8 @@ // Thread_Manager.i -// Unique thread id. -ACE_INLINE ACE_thread_t +// Unique thread id. +ACE_INLINE ACE_thread_t ACE_Thread_Descriptor::self (void) { ACE_TRACE ("ACE_Thread_Descriptor::self"); @@ -17,19 +17,19 @@ ACE_Thread_Descriptor::task (void) ACE_TRACE ("ACE_Thread_Descriptor::task"); return this->task_; } - + // Unique kernel-level thread handle. -ACE_INLINE void +ACE_INLINE void ACE_Thread_Descriptor::self (ACE_hthread_t &handle) { ACE_TRACE ("ACE_Thread_Descriptor::self"); handle = this->thr_handle_; -} +} // Group ID. -ACE_INLINE int +ACE_INLINE int ACE_Thread_Descriptor::grp_id (void) { ACE_TRACE ("ACE_Thread_Descriptor::grp_id"); @@ -37,7 +37,7 @@ ACE_Thread_Descriptor::grp_id (void) } // Current state of the thread. -ACE_INLINE ACE_Thread_State +ACE_INLINE ACE_Thread_State ACE_Thread_Descriptor::state (void) { ACE_TRACE ("ACE_Thread_Descriptor::state"); @@ -111,3 +111,15 @@ ACE_Thread_Manager::open (size_t) // Currently no-op. return 0; } + +ACE_INLINE void +ACE_Thread_Manager::wait_on_exit (int do_wait) +{ + this->automatic_wait_ = do_wait; +} + +ACE_INLINE int +ACE_Thread_Manager::wait_on_exit (void) +{ + return this->automatic_wait_; +} |