Panda3D
|
00001 // Filename: conditionVarDummyImpl.h 00002 // Created by: drose (09Aug02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) Carnegie Mellon University. All rights reserved. 00008 // 00009 // All use of this software is subject to the terms of the revised BSD 00010 // license. You should have received a copy of this license along 00011 // with this source code in a file named "LICENSE." 00012 // 00013 //////////////////////////////////////////////////////////////////// 00014 00015 #ifndef CONDITIONVARDUMMYIMPL_H 00016 #define CONDITIONVARDUMMYIMPL_H 00017 00018 #include "pandabase.h" 00019 #include "selectThreadImpl.h" 00020 #include "thread.h" 00021 00022 #include "pnotify.h" 00023 00024 class MutexDummyImpl; 00025 00026 //////////////////////////////////////////////////////////////////// 00027 // Class : ConditionVarDummyImpl 00028 // Description : A fake condition variable implementation for 00029 // single-threaded applications that don't need any 00030 // synchronization control. 00031 //////////////////////////////////////////////////////////////////// 00032 class EXPCL_PANDA_PIPELINE ConditionVarDummyImpl { 00033 public: 00034 INLINE ConditionVarDummyImpl(MutexDummyImpl &mutex); 00035 INLINE ~ConditionVarDummyImpl(); 00036 00037 INLINE void wait(); 00038 INLINE void wait(double timeout); 00039 INLINE void notify(); 00040 INLINE void notify_all(); 00041 }; 00042 00043 #include "conditionVarDummyImpl.I" 00044 00045 #endif