From 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging tags --- ychat-0.1/mutx.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ychat-0.1/mutx.cpp (limited to 'ychat-0.1/mutx.cpp') diff --git a/ychat-0.1/mutx.cpp b/ychat-0.1/mutx.cpp new file mode 100644 index 0000000..ff67ed2 --- /dev/null +++ b/ychat-0.1/mutx.cpp @@ -0,0 +1,28 @@ +// class mutx implementation. + +#ifndef MUTX_CXX +#define MUTX_CXX + +#include "mutx.h" + +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 ); +} + +#endif -- cgit v1.2.3