Panda3D
conditionVarDummyImpl.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 conditionVarDummyImpl.h
10  * @author drose
11  * @date 2002-08-09
12  */
13 
14 #ifndef CONDITIONVARDUMMYIMPL_H
15 #define CONDITIONVARDUMMYIMPL_H
16 
17 #include "pandabase.h"
18 #include "selectThreadImpl.h"
19 #include "thread.h"
20 
21 #include "pnotify.h"
22 
23 class MutexDummyImpl;
24 
25 /**
26  * A fake condition variable implementation for single-threaded applications
27  * that don't need any synchronization control.
28  */
29 class EXPCL_PANDA_PIPELINE ConditionVarDummyImpl {
30 public:
32  INLINE ~ConditionVarDummyImpl();
33 
34  INLINE void wait();
35  INLINE void wait(double timeout);
36  INLINE void notify();
37  INLINE void notify_all();
38 };
39 
40 #include "conditionVarDummyImpl.I"
41 
42 #endif
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.
A fake mutex implementation for single-threaded applications that don't need any synchronization cont...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.