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.4/mutx.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 ychat-0.4/mutx.h (limited to 'ychat-0.4/mutx.h') diff --git a/ychat-0.4/mutx.h b/ychat-0.4/mutx.h new file mode 100755 index 0000000..0438cb9 --- /dev/null +++ b/ychat-0.4/mutx.h @@ -0,0 +1,21 @@ +// class mutx declaration. + +#ifndef s_mutx_H +#define s_mutx_H + +#include "incl.h" + +using namespace std; + +class mutx +{ +public: + // this mutex is needed for sync stdout and sdterr of different threads. + pthread_mutex_t mut_stdout; + + // public methods. + explicit mutx( ); // simple constructor. + ~mutx( ); // simple constructor. +}; + +#endif -- cgit v1.2.3