Panda3D
|
00001 // Filename: mutexDummyImpl.h 00002 // Created by: drose (08Aug02) 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 MUTEXDUMMYIMPL_H 00016 #define MUTEXDUMMYIMPL_H 00017 00018 #include "dtoolbase.h" 00019 #include "selectThreadImpl.h" 00020 00021 //////////////////////////////////////////////////////////////////// 00022 // Class : MutexDummyImpl 00023 // Description : A fake mutex implementation for single-threaded 00024 // applications that don't need any synchronization 00025 // control. This does nothing at all. 00026 //////////////////////////////////////////////////////////////////// 00027 class EXPCL_DTOOL MutexDummyImpl { 00028 public: 00029 INLINE MutexDummyImpl(); 00030 INLINE ~MutexDummyImpl(); 00031 00032 INLINE void acquire(); 00033 INLINE bool try_acquire(); 00034 INLINE void release(); 00035 }; 00036 00037 #include "mutexDummyImpl.I" 00038 00039 #endif