From 0d6df835657bda160288fe8d9567381a25bac91e Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 6 Sep 2008 11:37:25 +0000 Subject: [PATCH] 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 --- include/threadengine.h | 2 ++ 1 file changed, 2 insertions(+) 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() { } }; -- 2.39.5