diff options
author | Marc Laukien <marc@zeroc.com> | 2004-10-07 21:46:10 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-10-07 21:46:10 +0000 |
commit | 406460580b2301b6897092d23dce342c02baaef6 (patch) | |
tree | 2f021f5351e840a685c7d80f375859d72e1f9d6b /cpp/src/IceSSL/OpenSSLUtils.cpp | |
parent | check for ICE_HOME (diff) | |
download | ice-406460580b2301b6897092d23dce342c02baaef6.tar.bz2 ice-406460580b2301b6897092d23dce342c02baaef6.tar.xz ice-406460580b2301b6897092d23dce342c02baaef6.zip |
static mutex fix for IceSSL
Diffstat (limited to 'cpp/src/IceSSL/OpenSSLUtils.cpp')
-rw-r--r-- | cpp/src/IceSSL/OpenSSLUtils.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/IceSSL/OpenSSLUtils.cpp b/cpp/src/IceSSL/OpenSSLUtils.cpp index 54b1b2d8fbe..08d83e458c7 100644 --- a/cpp/src/IceSSL/OpenSSLUtils.cpp +++ b/cpp/src/IceSSL/OpenSSLUtils.cpp @@ -7,8 +7,7 @@ // // ********************************************************************** -#include <IceUtil/Mutex.h> - +#include <IceUtil/StaticMutex.h> #include <IceSSL/OpenSSLPluginI.h> #include <IceSSL/OpenSSLUtils.h> @@ -131,7 +130,7 @@ static unsigned char dh4096_p[] = static unsigned char dh4096_g[] = { 0x02, }; // Ensures that the sslGetErrors() function is synchronized. -static ::IceUtil::Mutex sslErrorsMutex; +static IceUtil::StaticMutex sslErrorsMutex = ICE_STATIC_MUTEX_INITIALIZER; // // NOTE: The following (mon, getGeneralizedTime, getUTCTime and getASN1time) @@ -358,7 +357,7 @@ IceSSL::getTempDH4096() string IceSSL::sslGetErrors() { - IceUtil::Mutex::Lock sync(sslErrorsMutex); + IceUtil::StaticMutex::Lock sync(sslErrorsMutex); string errorMessage; char buf[200]; |