summaryrefslogtreecommitdiff
path: root/src/mutx.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:42 +0200
commit0537da9d1e0f593130fc3967befb71e673b016bc (patch)
treee6733c8494e0dc8df5bd7e5d2dcbd401771272b6 /src/mutx.h
parent3e382f0c9435cbf72570a87640652ad1551c7cfd (diff)
tagging ychat-0.5.4ychat-0.5.4
Diffstat (limited to 'src/mutx.h')
-rwxr-xr-xsrc/mutx.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/mutx.h b/src/mutx.h
new file mode 100755
index 0000000..c988936
--- /dev/null
+++ b/src/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