From 0537da9d1e0f593130fc3967befb71e673b016bc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:42 +0200 Subject: tagging ychat-0.5.4 --- src/mutx.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 src/mutx.cpp (limited to 'src/mutx.cpp') diff --git a/src/mutx.cpp b/src/mutx.cpp new file mode 100755 index 0000000..ed2a7d6 --- /dev/null +++ b/src/mutx.cpp @@ -0,0 +1,20 @@ +// class mutx implementation. + +#ifndef s_mutx_CXX +#define s_mutx_CXX + +#include "mutx.h" + +using namespace std; + +mutx::mutx() +{ + pthread_mutex_init( &mut_stdout, NULL ); +} + +mutx::~mutx() +{ + pthread_mutex_destroy( &mut_stdout ); +} + +#endif -- cgit v1.2.3