diff options
author | Marc Laukien <marc@zeroc.com> | 2003-02-22 23:50:41 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2003-02-22 23:50:41 +0000 |
commit | fabde9cbe6ec805f31280f75054b311df4f69ab8 (patch) | |
tree | 5e4753a6c031ade4d3434b21702e285c06721766 /cpp/src/IceUtil/RecMutex.cpp | |
parent | fixed bug with exceptions propagating from ice_response() (diff) | |
download | ice-fabde9cbe6ec805f31280f75054b311df4f69ab8.tar.bz2 ice-fabde9cbe6ec805f31280f75054b311df4f69ab8.tar.xz ice-fabde9cbe6ec805f31280f75054b311df4f69ab8.zip |
minor
Diffstat (limited to 'cpp/src/IceUtil/RecMutex.cpp')
-rw-r--r-- | cpp/src/IceUtil/RecMutex.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/RecMutex.cpp b/cpp/src/IceUtil/RecMutex.cpp index 5ea3bbed165..ae83312043c 100644 --- a/cpp/src/IceUtil/RecMutex.cpp +++ b/cpp/src/IceUtil/RecMutex.cpp @@ -88,7 +88,12 @@ IceUtil::RecMutex::lock(LockState& state) const IceUtil::RecMutex::RecMutex() : _count(0) { +#ifdef __linux__ const pthread_mutexattr_t attr = { PTHREAD_MUTEX_RECURSIVE_NP }; +#else + const pthread_mutexattr_t attr = { PTHREAD_MUTEX_RECURSIVE }; +#endif + int rc = pthread_mutex_init(&_mutex, &attr); if(rc != 0) { |