diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-24 22:06:31 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-12-24 22:06:31 +0000 |
commit | dadee72e7afe64a184e5158a73f25a81366b83b2 (patch) | |
tree | c28955d3a4f333b38f8b0544acf941b9941525b3 /ace/Synch.h | |
parent | 9c7964a7e6660569f79c561617c8556040baa4bc (diff) | |
download | ATCD-dadee72e7afe64a184e5158a73f25a81366b83b2.tar.gz |
ACE_Thread_Mutex is already recursive on Win32. Let ACE_Recursive_Thread_Mutex take advantage of this.
Diffstat (limited to 'ace/Synch.h')
-rw-r--r-- | ace/Synch.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ace/Synch.h b/ace/Synch.h index ff2c766e843..4801867327e 100644 --- a/ace/Synch.h +++ b/ace/Synch.h @@ -1073,6 +1073,9 @@ private: }; class ACE_Export ACE_Recursive_Thread_Mutex +#if defined (ACE_WIN32) + : public ACE_Thread_Mutex +#endif /* ACE_WIN32 */ { // = TITLE // Implement a C++ wrapper that allows calls to class @@ -1091,6 +1094,7 @@ public: void *arg = 0); // Initialize a recursive mutex. +#if !defined (ACE_WIN32) ~ACE_Recursive_Thread_Mutex (void); // Implicitly release a recursive mutex. @@ -1137,6 +1141,7 @@ public: // Releases a recursive mutex (will not release mutex until all the // nesting level drops to 0, which means the mutex is no longer // held). +#endif /* ! ACE_WIN32 */ ACE_thread_t get_thread_id (void); // Return the id of the thread that currently owns the mutex. @@ -1147,6 +1152,7 @@ public: // The nesting level is incremented every time the thread acquires // the mutex recursively. +#if !defined (ACE_WIN32) void dump (void) const; // Dump the state of an object. @@ -1169,6 +1175,7 @@ protected: ACE_thread_t owner_id_; // Current owner of the lock. +#endif /* ! ACE_WIN32 */ private: // = Prevent assignment and initialization. |