summaryrefslogtreecommitdiff
path: root/src/mutx.h
diff options
context:
space:
mode:
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