diff options
Diffstat (limited to 'ychat-0.2/mutx.h')
| -rwxr-xr-x | ychat-0.2/mutx.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ychat-0.2/mutx.h b/ychat-0.2/mutx.h new file mode 100755 index 0000000..4f6c950 --- /dev/null +++ b/ychat-0.2/mutx.h @@ -0,0 +1,21 @@ +// class mutx declaration. + +#ifndef MUTX_H +#define 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 |
