summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 11:37:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 11:37:25 +0000
commit0d6df835657bda160288fe8d9567381a25bac91e (patch)
tree792924bf464a3ae7d92fb86383563ae2b3e596ef
parent3426b12234a0968da611bee47cbbc43ee4e3b5ed (diff)
New methods in mutex purely for readability:
void Lock() { Enable(true); } void Unlock() { Enable(false); } git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10403 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/threadengine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index 4e0db0bfc..9c87f83b2 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -89,6 +89,8 @@ class CoreExport Mutex : public Extensible
public:
Mutex(InspIRCd* Instance);
virtual void Enable(bool enable) = 0;
+ void Lock() { Enable(true); }
+ void Unlock() { Enable(false); }
~Mutex() { }
};