Panda3D
conditionVarImpl.h
1 // Filename: conditionVarImpl.h
2 // Created by: drose (09Aug02)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef CONDITIONVARIMPL_H
16 #define CONDITIONVARIMPL_H
17 
18 #include "pandabase.h"
19 #include "selectThreadImpl.h"
20 
21 #if defined(THREAD_DUMMY_IMPL)
22 
23 #include "conditionVarDummyImpl.h"
24 typedef ConditionVarDummyImpl ConditionVarImpl;
25 typedef ConditionVarDummyImpl ConditionVarFullImpl;
26 
27 #elif defined(THREAD_SIMPLE_IMPL)
28 
29 #include "conditionVarSimpleImpl.h"
30 typedef ConditionVarSimpleImpl ConditionVarImpl;
31 typedef ConditionVarSimpleImpl ConditionVarFullImpl;
32 
33 #elif defined(MUTEX_SPINLOCK)
34 
35 #include "conditionVarSpinlockImpl.h"
36 typedef ConditionVarSpinlockImpl ConditionVarImpl;
37 typedef ConditionVarSpinlockImpl ConditionVarFullImpl;
38 
39 #elif defined(THREAD_WIN32_IMPL)
40 
41 #include "conditionVarWin32Impl.h"
42 #include "conditionVarFullWin32Impl.h"
43 typedef ConditionVarWin32Impl ConditionVarImpl;
44 typedef ConditionVarFullWin32Impl ConditionVarFullImpl;
45 
46 #elif defined(THREAD_POSIX_IMPL)
47 
48 #include "conditionVarPosixImpl.h"
49 typedef ConditionVarPosixImpl ConditionVarImpl;
50 typedef ConditionVarPosixImpl ConditionVarFullImpl;
51 
52 #endif
53 
54 #endif
55 
56 
57 
A fake condition variable implementation for single-threaded applications that don't need any synchro...