diff options
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 ); } |
