Panda3D
psemaphore.cxx
1 // Filename: psemaphore.cxx
2 // Created by: drose (13Oct08)
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 #include "psemaphore.h"
16 
17 ////////////////////////////////////////////////////////////////////
18 // Function: Semaphore::output
19 // Access: Published
20 // Description:
21 ////////////////////////////////////////////////////////////////////
22 void Semaphore::
23 output(ostream &out) const {
24  MutexHolder holder(_lock);
25  out << "Semaphore, count = " << _count;
26 }
A lightweight C++ object whose constructor calls acquire() and whose destructor calls release() on a ...
Definition: mutexHolder.h:29