00001 // Filename: lightReMutex.I 00002 // Created by: drose (08Oct08) 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 00016 //////////////////////////////////////////////////////////////////// 00017 // Function: LightReMutex::Constructor 00018 // Access: Public 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE LightReMutex:: 00022 #ifdef DEBUG_THREADS 00023 LightReMutex() : MutexDebug(string(), true, true) 00024 #else 00025 LightReMutex() 00026 #endif // DEBUG_THREADS 00027 { 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: LightReMutex::Constructor 00032 // Access: Public 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 INLINE LightReMutex:: 00036 #ifdef DEBUG_THREADS 00037 LightReMutex(const char *name) : MutexDebug(string(name), true, true) 00038 #else 00039 LightReMutex(const char *) 00040 #endif // DEBUG_THREADS 00041 { 00042 } 00043 00044 //////////////////////////////////////////////////////////////////// 00045 // Function: LightReMutex::Constructor 00046 // Access: Public 00047 // Description: 00048 //////////////////////////////////////////////////////////////////// 00049 INLINE LightReMutex:: 00050 #ifdef DEBUG_THREADS 00051 LightReMutex(const string &name) : MutexDebug(name, true, true) 00052 #else 00053 LightReMutex(const string &) 00054 #endif // DEBUG_THREADS 00055 { 00056 } 00057 00058 //////////////////////////////////////////////////////////////////// 00059 // Function: LightReMutex::Destructor 00060 // Access: Public 00061 // Description: 00062 //////////////////////////////////////////////////////////////////// 00063 INLINE LightReMutex:: 00064 ~LightReMutex() { 00065 } 00066 00067 //////////////////////////////////////////////////////////////////// 00068 // Function: LightReMutex::Copy Assignment Operator 00069 // Access: Private 00070 // Description: Do not attempt to copy mutexes. 00071 //////////////////////////////////////////////////////////////////// 00072 INLINE void LightReMutex:: 00073 operator = (const LightReMutex ©) { 00074 nassertv(false); 00075 }