Panda3D
Loading...
Searching...
No Matches
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
23typedef ConditionVarDummyImpl ConditionVarImpl;
24typedef ConditionVarDummyImpl ConditionVarFullImpl;
25
26#elif defined(THREAD_SIMPLE_IMPL)
27
29typedef ConditionVarSimpleImpl ConditionVarImpl;
30typedef ConditionVarSimpleImpl ConditionVarFullImpl;
31
32#elif defined(MUTEX_SPINLOCK)
33
35typedef ConditionVarSpinlockImpl ConditionVarImpl;
36typedef ConditionVarSpinlockImpl ConditionVarFullImpl;
37
38#elif defined(THREAD_WIN32_IMPL)
39
42typedef ConditionVarWin32Impl ConditionVarImpl;
43typedef ConditionVarFullWin32Impl ConditionVarFullImpl;
44
45#elif defined(THREAD_POSIX_IMPL)
46
48typedef ConditionVarPosixImpl ConditionVarImpl;
49typedef ConditionVarPosixImpl ConditionVarFullImpl;
50
51#endif
52
53#if defined(WIN32_VC) || (defined(_WIN32) && !defined(HAVE_POSIX_THREADS))
55typedef ConditionVarWin32Impl TrueConditionVarImpl;
56
57#elif defined(HAVE_POSIX_THREADS)
59typedef ConditionVarPosixImpl TrueConditionVarImpl;
60
61#else
62// No true threads, sorry. Better not try to use 'em.
63
64#endif
65
66#endif
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.