Panda3D
conditionVarImpl.h
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file conditionVarImpl.h
10  * @author drose
11  * @date 2002-08-09
12  */
13 
14 #ifndef CONDITIONVARIMPL_H
15 #define CONDITIONVARIMPL_H
16 
17 #include "pandabase.h"
18 #include "selectThreadImpl.h"
19 
20 #if defined(THREAD_DUMMY_IMPL)
21 
22 #include "conditionVarDummyImpl.h"
23 typedef ConditionVarDummyImpl ConditionVarImpl;
24 typedef ConditionVarDummyImpl ConditionVarFullImpl;
25 
26 #elif defined(THREAD_SIMPLE_IMPL)
27 
28 #include "conditionVarSimpleImpl.h"
29 typedef ConditionVarSimpleImpl ConditionVarImpl;
30 typedef ConditionVarSimpleImpl ConditionVarFullImpl;
31 
32 #elif defined(MUTEX_SPINLOCK)
33 
35 typedef ConditionVarSpinlockImpl ConditionVarImpl;
36 typedef ConditionVarSpinlockImpl ConditionVarFullImpl;
37 
38 #elif defined(THREAD_WIN32_IMPL)
39 
40 #include "conditionVarWin32Impl.h"
42 typedef ConditionVarWin32Impl ConditionVarImpl;
43 typedef ConditionVarFullWin32Impl ConditionVarFullImpl;
44 
45 #elif defined(THREAD_POSIX_IMPL)
46 
47 #include "conditionVarPosixImpl.h"
48 typedef ConditionVarPosixImpl ConditionVarImpl;
49 typedef ConditionVarPosixImpl ConditionVarFullImpl;
50 
51 #endif
52 
53 #if defined(WIN32_VC)
54 #include "conditionVarWin32Impl.h"
55 typedef ConditionVarWin32Impl TrueConditionVarImpl;
56 
57 #elif defined(HAVE_POSIX_THREADS)
58 #include "conditionVarPosixImpl.h"
59 typedef ConditionVarPosixImpl TrueConditionVarImpl;
60 
61 #else
62 // No true threads, sorry. Better not try to use 'em.
63 
64 #endif
65 
66 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A fake condition variable implementation for single-threaded applications that don't need any synchro...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.