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.2/MUTX.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 ychat-0.2/MUTX.h (limited to 'ychat-0.2/MUTX.h') diff --git a/ychat-0.2/MUTX.h b/ychat-0.2/MUTX.h new file mode 100755 index 0000000..f2e9980 --- /dev/null +++ b/ychat-0.2/MUTX.h @@ -0,0 +1,26 @@ +#ifndef GMUT_H +#define GMUT_H + +#include "mutx.h" + +using namespace std; + +class MUTX +{ +private: + static mutx* obj; + +public: + static void init() + { + obj = new mutx(); + } + + static mutx& get() + { + return *obj; + } +}; + + +#endif -- cgit v1.2.3