summaryrefslogtreecommitdiff
path: root/mutx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mutx.cpp')
-rw-r--r--[-rwxr-xr-x]mutx.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/mutx.cpp b/mutx.cpp
index eb75e90..ff67ed2 100755..100644
--- 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 );
}