diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:45 +0200 |
| commit | 23c5e7d57e1e9216f4da3446656df2dc7202975d (patch) | |
| tree | b387afc4ad6acad4681252df8ce8def5dc8aa54d /mutx.cpp | |
| parent | 9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (diff) | |
tagging ychat-0.1ychat-0.1
Diffstat (limited to 'mutx.cpp')
| -rw-r--r--[-rwxr-xr-x] | mutx.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,7 @@ // class mutx implementation. -#ifndef s_mutx_CXX -#define s_mutx_CXX +#ifndef MUTX_CXX +#define MUTX_CXX #include "mutx.h" @@ -9,11 +9,19 @@ using namespace std; mutx::mutx() { +#ifdef VERBOSE + cout << "mutx::mutx()" << endl; +#endif + pthread_mutex_init( &mut_stdout, NULL ); } mutx::~mutx() { +#ifdef VERBOSE + cout << "mutx::~mutx()" << endl; +#endif + pthread_mutex_destroy( &mut_stdout ); } |
