]> git.tdb.fi Git - libs/core.git/blob - source/core/types.h
Assimilate exceptions and RefPtr from mspmisc
[libs/core.git] / source / core / types.h
1 /* $Id$
2
3 This file is part of libmspcore
4 Copyright © 2006  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7 #ifndef MSP_CORE_TYPES_H_
8 #define MSP_CORE_TYPES_H_
9
10 #ifdef WIN32
11 #include <windows.h>
12 #else
13 #include <pthread.h>
14 #endif
15
16 namespace Msp {
17
18 #ifdef WIN32
19 typedef HANDLE ThreadHandle;
20 typedef HANDLE MutexHandle;
21 typedef HANDLE SemaphoreHandle;
22 #else
23 typedef pthread_t ThreadHandle;
24 typedef pthread_mutex_t MutexHandle;
25 typedef pthread_cond_t SemaphoreHandle;
26 #endif
27
28 } // namespace Msp
29
30 #endif