summaryrefslogtreecommitdiff
path: root/mutx.h
diff options
context:
space:
mode:
Diffstat (limited to 'mutx.h')
-rw-r--r--mutx.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/mutx.h b/mutx.h
new file mode 100644
index 0000000..0438cb9
--- /dev/null
+++ b/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