diff options
author | Bernard Normier <bernard@zeroc.com> | 2006-11-07 19:24:17 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2006-11-07 19:24:17 +0000 |
commit | 93b0e80aa3007de763c5dabfb353fcfafdc10f9d (patch) | |
tree | e965452220ead3f5eebae506717f5e1aaccff59e /cpp/src/FreezeScript/Parser.cpp | |
parent | fixing IceUtil::Options exceptions (diff) | |
download | ice-93b0e80aa3007de763c5dabfb353fcfafdc10f9d.tar.bz2 ice-93b0e80aa3007de763c5dabfb353fcfafdc10f9d.tar.xz ice-93b0e80aa3007de763c5dabfb353fcfafdc10f9d.zip |
Replaced static Mutex by static StaticMutex
Diffstat (limited to 'cpp/src/FreezeScript/Parser.cpp')
-rw-r--r-- | cpp/src/FreezeScript/Parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/FreezeScript/Parser.cpp b/cpp/src/FreezeScript/Parser.cpp index 94b15d6269e..2b42e63f95b 100644 --- a/cpp/src/FreezeScript/Parser.cpp +++ b/cpp/src/FreezeScript/Parser.cpp @@ -9,7 +9,7 @@ #include <FreezeScript/Parser.h> #include <FreezeScript/GrammarUtil.h> -#include <IceUtil/Mutex.h> +#include <IceUtil/StaticMutex.h> using namespace std; @@ -66,7 +66,7 @@ int FreezeScript::parseLine; static string _input; static string::size_type _pos; -static IceUtil::Mutex _parserMutex; +static IceUtil::StaticMutex _parserMutex = ICE_STATIC_MUTEX_INITIALIZER; // // parseExpression @@ -77,7 +77,7 @@ FreezeScript::parseExpression(const string& expr, const DataFactoryPtr& factory, // // The bison grammar is not thread-safe. // - IceUtil::Mutex::Lock sync(_parserMutex); + IceUtil::StaticMutex::Lock sync(_parserMutex); parseDataFactory = factory; parseErrorReporter = errorReporter; |