diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 11:37:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-06 11:37:25 +0000 |
commit | 0d6df835657bda160288fe8d9567381a25bac91e (patch) | |
tree | 792924bf464a3ae7d92fb86383563ae2b3e596ef /include/threadengine.h | |
parent | 3426b12234a0968da611bee47cbbc43ee4e3b5ed (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
Diffstat (limited to 'include/threadengine.h')
-rw-r--r-- | include/threadengine.h | 2 |
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() { } }; |