Panda3D
conditionVarFullDebug.I
1 // Filename: conditionVarFullDebug.I
2 // Created by: drose (28Aug06)
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: ConditionVarFullDebug::Copy Constructor
18 // Access: Private
19 // Description: Do not attempt to copy condition variables.
20 ////////////////////////////////////////////////////////////////////
21 INLINE ConditionVarFullDebug::
22 ConditionVarFullDebug(const ConditionVarFullDebug &copy) :
23  _mutex(copy._mutex),
24  _impl(*_mutex._global_lock)
25 {
26  nassertv(false);
27 }
28 
29 ////////////////////////////////////////////////////////////////////
30 // Function: ConditionVarFullDebug::Copy Assignment Operator
31 // Access: Private
32 // Description: Do not attempt to copy condition variables.
33 ////////////////////////////////////////////////////////////////////
34 INLINE void ConditionVarFullDebug::
35 operator = (const ConditionVarFullDebug &copy) {
36  nassertv(false);
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: ConditionVarFullDebug::get_mutex
41 // Access: Published
42 // Description: Returns the mutex associated with this condition
43 // variable.
44 ////////////////////////////////////////////////////////////////////
45 INLINE MutexDebug &ConditionVarFullDebug::
46 get_mutex() const {
47  return _mutex;
48 }