diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-30 06:00:43 +0000 |
commit | e08a7cc8649d735a166879a3c1cf0b1642c651d1 (patch) | |
tree | 1916876b0586ea5bf1c00b22e59e274708e3b61d /plugins/Quotes/src/ModuleInfo.cpp | |
parent | 481296bc540cdbdd0efef87ddaa173c96619edc3 (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/ModuleInfo.cpp')
-rw-r--r-- | plugins/Quotes/src/ModuleInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Quotes/src/ModuleInfo.cpp b/plugins/Quotes/src/ModuleInfo.cpp index 980a5241bc..656d17ad64 100644 --- a/plugins/Quotes/src/ModuleInfo.cpp +++ b/plugins/Quotes/src/ModuleInfo.cpp @@ -4,7 +4,7 @@ namespace {
CModuleInfo::TXMLEnginePtr g_pXMLEngine;
CModuleInfo::THTMLEnginePtr g_pHTMLEngine;
- CLightMutex g_lmParsers;
+ mir_cs g_lmParsers;
}
CModuleInfo::CModuleInfo()
@@ -58,7 +58,7 @@ CModuleInfo::TXMLEnginePtr CModuleInfo::GetXMLEnginePtr() {
if (!g_pXMLEngine)
{
- CGuard<CLightMutex> cs(g_lmParsers);
+ mir_cslock lck(g_lmParsers);
if (!g_pXMLEngine)
{
mir_getXI(&xi);
@@ -78,7 +78,7 @@ CModuleInfo::THTMLEnginePtr CModuleInfo::GetHTMLEngine() {
if (!g_pHTMLEngine)
{
- CGuard<CLightMutex> cs(g_lmParsers);
+ mir_cslock lck(g_lmParsers);
if (!g_pHTMLEngine)
{
g_pHTMLEngine = THTMLEnginePtr(new CHTMLEngineMS);
|