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