Panda3D
conditionVarDummyImpl.h
1 // Filename: conditionVarDummyImpl.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 CONDITIONVARDUMMYIMPL_H
16 #define CONDITIONVARDUMMYIMPL_H
17 
18 #include "pandabase.h"
19 #include "selectThreadImpl.h"
20 #include "thread.h"
21 
22 #include "pnotify.h"
23 
24 class MutexDummyImpl;
25 
26 ////////////////////////////////////////////////////////////////////
27 // Class : ConditionVarDummyImpl
28 // Description : A fake condition variable implementation for
29 // single-threaded applications that don't need any
30 // synchronization control.
31 ////////////////////////////////////////////////////////////////////
32 class EXPCL_PANDA_PIPELINE ConditionVarDummyImpl {
33 public:
35  INLINE ~ConditionVarDummyImpl();
36 
37  INLINE void wait();
38  INLINE void wait(double timeout);
39  INLINE void notify();
40  INLINE void notify_all();
41 };
42 
43 #include "conditionVarDummyImpl.I"
44 
45 #endif
A fake condition variable implementation for single-threaded applications that don't need any synchro...
A fake mutex implementation for single-threaded applications that don't need any synchronization cont...