Panda3D

conditionVarDebug.I

00001 // Filename: conditionVarDebug.I
00002 // Created by:  drose (13Feb06)
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: ConditionVarDebug::Copy Constructor
00018 //       Access: Private
00019 //  Description: Do not attempt to copy condition variables.
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE ConditionVarDebug::
00022 ConditionVarDebug(const ConditionVarDebug &copy) : 
00023   _mutex(copy._mutex), 
00024   _impl(*_mutex._global_lock)
00025 {
00026   nassertv(false);
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: ConditionVarDebug::Copy Assignment Operator
00031 //       Access: Private
00032 //  Description: Do not attempt to copy condition variables.
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE void ConditionVarDebug::
00035 operator = (const ConditionVarDebug &copy) {
00036   nassertv(false);
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: ConditionVarDebug::get_mutex
00041 //       Access: Published
00042 //  Description: Returns the mutex associated with this condition
00043 //               variable.
00044 ////////////////////////////////////////////////////////////////////
00045 INLINE MutexDebug &ConditionVarDebug::
00046 get_mutex() const {
00047   return _mutex;
00048 }
 All Classes Functions Variables Enumerations