]> git.tdb.fi Git - libs/core.git/blob - source/core/mutex_private.h
Link examples against the library with a use statement
[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