]> git.tdb.fi Git - libs/core.git/blob - source/core/mutex_private.h
0b092dad9e441d8e9e5563d50a6b7b7c280326f6
[libs/core.git] / source / core / mutex_private.h
1 #ifndef MSP_CORE_MUTEX_PRIVATE_H_
2 #define MSP_CORE_MUTEX_PRIVATE_H_
3
4 #ifdef WIN32
5 #include <windows.h>
6 #else
7 #include <pthread.h>
8 #endif
9 #include "mutex.h"
10
11 namespace Msp {
12
13 struct Mutex::Private
14 {
15 #ifdef WIN32
16         CRITICAL_SECTION crit;
17 #else
18         pthread_mutex_t mutex;
19 #endif
20 };
21
22 } // namespace Msp
23
24 #endif