blob: 2e4971b6a0faf4d39c6365aaa92aa9920b23d908 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// class room implementation.
#ifndef ROOM_CXX
#define ROOM_CXX
#include "room.h"
#include "MUTX.h"
using namespace std;
room::room( string s_name ) : name( s_name )
{
#ifdef VERBOSE
pthread_mutex_lock ( &MUTX::get().mut_stdout );
cout << "room::room( \"" << s_name << "\" )" << endl;
pthread_mutex_unlock( &MUTX::get().mut_stdout );
#endif
}
room::~room()
{
#ifdef VERBOSE
pthread_mutex_lock ( &MUTX::get().mut_stdout );
cout << "room::~room[ " << get_name() << " ]" << endl;
pthread_mutex_unlock( &MUTX::get().mut_stdout );
#endif
}
#endif
|