Panda3D
|
00001 // Filename: lightMutex.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: LightMutex::Constructor 00018 // Access: Published 00019 // Description: 00020 //////////////////////////////////////////////////////////////////// 00021 INLINE LightMutex:: 00022 #ifdef DEBUG_THREADS 00023 LightMutex() : MutexDebug(string(), false, true) 00024 #else 00025 LightMutex() 00026 #endif // DEBUG_THREADS 00027 { 00028 } 00029 00030 //////////////////////////////////////////////////////////////////// 00031 // Function: LightMutex::Constructor 00032 // Access: Public 00033 // Description: 00034 //////////////////////////////////////////////////////////////////// 00035 INLINE LightMutex:: 00036 #ifdef DEBUG_THREADS 00037 LightMutex(const char *name) : MutexDebug(string(name), false, true) 00038 #else 00039 LightMutex(const char *) 00040 #endif // DEBUG_THREADS 00041 { 00042 } 00043 00044 //////////////////////////////////////////////////////////////////// 00045 // Function: LightMutex::Constructor 00046 // Access: Published 00047 // Description: 00048 //////////////////////////////////////////////////////////////////// 00049 INLINE LightMutex:: 00050 #ifdef DEBUG_THREADS 00051 LightMutex(const string &name) : MutexDebug(name, false, true) 00052 #else 00053 LightMutex(const string &) 00054 #endif // DEBUG_THREADS 00055 { 00056 } 00057 00058 //////////////////////////////////////////////////////////////////// 00059 // Function: LightMutex::Destructor 00060 // Access: Published 00061 // Description: 00062 //////////////////////////////////////////////////////////////////// 00063 INLINE LightMutex:: 00064 ~LightMutex() { 00065 } 00066 00067 //////////////////////////////////////////////////////////////////// 00068 // Function: LightMutex::Copy Constructor 00069 // Access: Private 00070 // Description: Do not attempt to copy lightMutexes. 00071 //////////////////////////////////////////////////////////////////// 00072 INLINE LightMutex:: 00073 #ifdef DEBUG_THREADS 00074 LightMutex(const LightMutex ©) : MutexDebug(string(), false, true) 00075 #else 00076 LightMutex(const LightMutex ©) 00077 #endif // DEBUG_THREADS 00078 { 00079 nassertv(false); 00080 } 00081 00082 //////////////////////////////////////////////////////////////////// 00083 // Function: LightMutex::Copy Assignment Operator 00084 // Access: Private 00085 // Description: Do not attempt to copy lightMutexes. 00086 //////////////////////////////////////////////////////////////////// 00087 INLINE void LightMutex:: 00088 operator = (const LightMutex ©) { 00089 nassertv(false); 00090 }