diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 11:32:39 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-05-11 11:32:39 +0000 |
commit | fe7e3a6032bf680998da291616f39c679920f481 (patch) | |
tree | 8f1750921896e7f0679ff1a338d1358c7f541d5f /protocols/Xfire/src/Xfire_gamelist.cpp | |
parent | b86e3b7cd68112b06c2a54be9fb262d45a65833a (diff) |
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13525 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/Xfire_gamelist.cpp')
-rw-r--r-- | protocols/Xfire/src/Xfire_gamelist.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Xfire/src/Xfire_gamelist.cpp b/protocols/Xfire/src/Xfire_gamelist.cpp index 728c9c7bb9..4e98b8e381 100644 --- a/protocols/Xfire/src/Xfire_gamelist.cpp +++ b/protocols/Xfire/src/Xfire_gamelist.cpp @@ -52,7 +52,6 @@ Xfire_gamelist::Xfire_gamelist() {
nextgameid = 0;
ingame = FALSE;
- InitializeCriticalSection(&gamlistMutex);
}
//dekonstruktor
@@ -62,7 +61,6 @@ Xfire_gamelist::~Xfire_gamelist() { if (game) delete game;
}
gamelist.clear();
- DeleteCriticalSection(&gamlistMutex);
}
//hole das nächste game
@@ -97,9 +95,7 @@ BOOL Xfire_gamelist::getnextGame(Xfire_game**currentgame) void Xfire_gamelist::Block(BOOL block)
{
if (block)
- EnterCriticalSection(&gamlistMutex);
- else
- LeaveCriticalSection(&gamlistMutex);
+ mir_cslock lck(gamlistMutex);
}
//fügt simple ein gameobject in den vector ein
|