diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-08 08:58:07 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-05-08 08:58:07 +0000 |
commit | 5f5d635eb1485a1ac4a1261f606bdb2b8f18f7b6 (patch) | |
tree | 7e8d82aea49318182eeeef662bbfd2bcffc076c5 /ace/Thread_Manager.h | |
parent | 88e2fd74fe3bdbd521fe7292d4173c9193fa38b8 (diff) | |
download | ATCD-5f5d635eb1485a1ac4a1261f606bdb2b8f18f7b6.tar.gz |
Optimize for the most usual case where there is no contension when removing Thread_Descriptor from the Thread Manager.
Diffstat (limited to 'ace/Thread_Manager.h')
-rw-r--r-- | ace/Thread_Manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Thread_Manager.h b/ace/Thread_Manager.h index 06860d9f022..d3e333d78e8 100644 --- a/ace/Thread_Manager.h +++ b/ace/Thread_Manager.h @@ -165,6 +165,10 @@ private: // <ACE_Task_Base>; ACE_DEFAULT_THREAD_MANAGER_LOCK *sync_; + // Registration lock to prevent premature removal of thread descriptor. + + int registered_; + // Keep track of registration status. ACE_Thread_Descriptor *next_; ACE_Thread_Descriptor *prev_; |