]> git.cworth.org Git - apitrace/blobdiff - common/os_win32.cpp
Move mutex abstraction to os_thread.hpp.
[apitrace] / common / os_win32.cpp
index 7e1a544a163597997130251f0f269ebfb63b2342..a0203544ee6b1298683c9e5c2b2e0b088c7aeb65 100644 (file)
 namespace os {
 
 
-/* 
- * Trick from http://locklessinc.com/articles/pthreads_on_windows/
- */
-static CRITICAL_SECTION
-criticalSection = {
-    (PCRITICAL_SECTION_DEBUG)-1, -1, 0, 0, 0, 0
-};
-
-
-void
-acquireMutex(void)
-{
-    EnterCriticalSection(&criticalSection);
-}
-
-
-void
-releaseMutex(void)
-{
-    LeaveCriticalSection(&criticalSection);
-}
-
-
 String
 getProcessName(void)
 {