diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-05 07:41:59 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-05 07:41:59 +0000 |
commit | 2915eb42f12040a76797584733cec9757817ed2e (patch) | |
tree | 970245b8429f44349f62cd9ab28a374d5afac13a /cpp/src | |
parent | http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=199 (diff) | |
download | ice-2915eb42f12040a76797584733cec9757817ed2e.tar.bz2 ice-2915eb42f12040a76797584733cec9757817ed2e.tar.xz ice-2915eb42f12040a76797584733cec9757817ed2e.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=403
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/Initialize.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/src/Ice/Initialize.cpp b/cpp/src/Ice/Initialize.cpp index b81059de4b4..b7d5a0246ed 100644 --- a/cpp/src/Ice/Initialize.cpp +++ b/cpp/src/Ice/Initialize.cpp @@ -114,10 +114,12 @@ public: } }; static DefaultPropertiesDestroyer defaultPropertiesDestroyer; +static IceUtil::StaticMutex defaultPropMutex = ICE_STATIC_MUTEX_INITIALIZER; PropertiesPtr Ice::getDefaultProperties() { + IceUtil::StaticMutex::Lock sync(defaultPropMutex); if(!defaultProperties) { defaultProperties = createProperties(); @@ -128,6 +130,7 @@ Ice::getDefaultProperties() PropertiesPtr Ice::getDefaultProperties(StringSeq& args) { + IceUtil::StaticMutex::Lock sync(defaultPropMutex); if(!defaultProperties) { defaultProperties = createProperties(args); |