summaryrefslogtreecommitdiff
path: root/ychat-0.1/cmnd.cpp
blob: d6efc23627b31bc86fdf75e27fdc3aa9f504c5c5 (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 cmnd implementation.

#ifndef CMND_CXX
#define CMND_CXX

#include "cmnd.h"
#include "MUTX.h"

using namespace std;

cmnd::cmnd( )
{
#ifdef VERBOSE
 pthread_mutex_lock  ( &MUTX::get().mut_stdout );
 cout << "cmnd::cmnd( )" << cout;
 pthread_mutex_unlock( &MUTX::get().mut_stdout );
#endif
}

cmnd::~cmnd()
{
#ifdef VERBOSE
 pthread_mutex_lock  ( &MUTX::get().mut_stdout );
 cout << "cmnd::~cmnd( )" << endl;
 pthread_mutex_unlock( &MUTX::get().mut_stdout );
#endif
}

#endif