From 23c5e7d57e1e9216f4da3446656df2dc7202975d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:45 +0200 Subject: tagging ychat-0.1 --- mutx.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) mode change 100755 => 100644 mutx.cpp (limited to 'mutx.cpp') diff --git a/mutx.cpp b/mutx.cpp old mode 100755 new mode 100644 index eb75e90..ff67ed2 --- a/mutx.cpp +++ b/mutx.cpp @@ -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 ); } -- cgit v1.2.3