From edd35ae3af70075e0d59b6409f6d206c6c08d85b Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 4 Sep 2008 10:06:59 +0000 Subject: ability to create mutexes (rather than just having one system wide mutex) in the threadengines, allows for migration of m_mysql etc. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10381 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/threadengine.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/threadengine.h') diff --git a/include/threadengine.h b/include/threadengine.h index 59d425481..4e0db0bfc 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -82,6 +82,16 @@ class CoreExport ThreadEngine : public Extensible } }; +class CoreExport Mutex : public Extensible +{ + protected: + InspIRCd* ServerInstance; + public: + Mutex(InspIRCd* Instance); + virtual void Enable(bool enable) = 0; + ~Mutex() { } +}; + /** Derive from this class to implement your own threaded sections of * code. */ -- cgit v1.3.1-10-gc9f91