diff options
author | George Hazan <george.hazan@gmail.com> | 2014-07-13 10:50:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-07-13 10:50:59 +0000 |
commit | 5df94ff719eccd04c7450df35fb5e3f2b36e2ee7 (patch) | |
tree | 440d736b199ff849ca0619adf355ffc73750ca7f /src/modules/button/button.cpp | |
parent | 70496fb739225b559a251f4518c946110aef718c (diff) |
wrapping the most evident critical sections into a class
git-svn-id: http://svn.miranda-ng.org/main/trunk@9785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/button/button.cpp')
-rw-r--r-- | src/modules/button/button.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index b79a0386c8..efe2c397b2 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -36,7 +36,7 @@ struct TTooltips };
static LIST<TTooltips> lToolTips(1, NumericKeySortT);
-static CRITICAL_SECTION csTips;
+static mir_cs csTips;
static BOOL bModuleInitialized = FALSE;
// Used for our own cheap TrackMouseEvent
@@ -627,17 +627,5 @@ int LoadButtonModule(void) RegisterClassEx(&wc);
CreateServiceFunction("Button/GetWindowProc", GetButtonProc);
- InitializeCriticalSection(&csTips);
return 0;
}
-
-///////////////////////////////////////////////////////////////////////////////
-// Module unload
-
-void UnloadButtonModule()
-{
- if (!bModuleInitialized)
- return;
-
- DeleteCriticalSection(&csTips);
-}
|