summaryrefslogtreecommitdiff
path: root/s_mutx.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:49 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:49 +0200
commit5ecef758a2826bd28dd0676940cd12ef6792126f (patch)
tree94454ed763dfbaf902eef267e1dcef0b30a0db4c /s_mutx.h
parent5a019f435eb0068b524566d9babf172d58d0e96e (diff)
tagging ychat-0.4ychat-0.4
Diffstat (limited to 's_mutx.h')
-rw-r--r--s_mutx.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/s_mutx.h b/s_mutx.h
index 1363408..24c0f97 100644
--- a/s_mutx.h
+++ b/s_mutx.h
@@ -5,22 +5,21 @@
using namespace std;
-class s_mutx
+class s_mutx
{
private:
- static mutx* obj;
+ static mutx* obj;
public:
- static void init()
- {
- obj = new mutx();
- }
+ static void init()
+ {
+ obj = new mutx();
+ }
- static mutx& get
- ()
- {
- return *obj;
- }
+ static mutx& get()
+ {
+ return *obj;
+ }
};