summaryrefslogtreecommitdiff
path: root/mutx.cpp
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
commit23c5e7d57e1e9216f4da3446656df2dc7202975d (patch)
treeb387afc4ad6acad4681252df8ce8def5dc8aa54d /mutx.cpp
parent9dcec1feba68dc5ba38cdc634f5bf113c0f77348 (diff)
tagging ychat-0.1ychat-0.1
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 );
}