Panda3D
 All Classes Functions Variables Enumerations
conditionVarDebug.I
1 // Filename: conditionVarDebug.I
2 // Created by: drose (13Feb06)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 
16 ////////////////////////////////////////////////////////////////////
17 // Function: ConditionVarDebug::Copy Constructor
18 // Access: Private
19 // Description: Do not attempt to copy condition variables.
20 ////////////////////////////////////////////////////////////////////
21 INLINE ConditionVarDebug::
22 ConditionVarDebug(const ConditionVarDebug &copy) :
23  _mutex(copy._mutex),
24  _impl(*_mutex._global_lock)
25 {
26  nassertv(false);
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: ConditionVarDebug::Copy Assignment Operator
31 // Access: Private
32 // Description: Do not attempt to copy condition variables.
33 ////////////////////////////////////////////////////////////////////
34 INLINE void ConditionVarDebug::
35 operator = (const ConditionVarDebug &copy) {
36  nassertv(false);
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: ConditionVarDebug::get_mutex
41 // Access: Published
42 // Description: Returns the mutex associated with this condition
43 // variable.
44 ////////////////////////////////////////////////////////////////////
45 INLINE MutexDebug &ConditionVarDebug::
46 get_mutex() const {
47  return _mutex;
48 }