diff options
author | Michi Henning <michi@zeroc.com> | 2003-10-20 23:18:23 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-10-20 23:18:23 +0000 |
commit | 8941640745d51e543fadc0524368d5f861691152 (patch) | |
tree | 384020f2b665d7f1a1c20b5ea435e0bf74faf476 /cpp/include/IceUtil/StaticMutex.h | |
parent | merging changes from garbage collector (diff) | |
download | ice-8941640745d51e543fadc0524368d5f861691152.tar.bz2 ice-8941640745d51e543fadc0524368d5f861691152.tar.xz ice-8941640745d51e543fadc0524368d5f861691152.zip |
merging changes for garbage collector
Diffstat (limited to 'cpp/include/IceUtil/StaticMutex.h')
-rw-r--r-- | cpp/include/IceUtil/StaticMutex.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/StaticMutex.h b/cpp/include/IceUtil/StaticMutex.h index a84136ceac3..a23dc0afe56 100644 --- a/cpp/include/IceUtil/StaticMutex.h +++ b/cpp/include/IceUtil/StaticMutex.h @@ -38,6 +38,10 @@ class ICE_UTIL_API StaticMutex { public: +#ifndef _WIN32 + ~StaticMutex(); +#endif + // // Lock & TryLock typedefs. // @@ -262,6 +266,16 @@ StaticMutex::lock(LockState&) const #else +inline +StaticMutex::~StaticMutex() +{ + int rc = pthread_mutex_destroy(&_mutex); + if(rc != 0) + { + throw ThreadSyscallException(__FILE__, __LINE__, rc); + } +} + inline void StaticMutex::lock() const { |