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/threadengines/threadengine_win32.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/threadengines/threadengine_win32.h') diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h index 39e6ae88d..e19f24ca0 100644 --- a/include/threadengines/threadengine_win32.h +++ b/include/threadengines/threadengine_win32.h @@ -53,5 +53,24 @@ class CoreExport ThreadEngineFactory : public classbase } }; +class CoreExport Win32Mutex : public Mutex +{ + private: + CRITICAL_SECTION wutex; + public: + Win32Mutex(InspIRCd* Instance); + virtual void Enable(bool enable); + ~Win32Mutex(); +}; + +class CoreExport MutexEngine : public Extensible +{ + protected: + InspIRCd* ServerInstance; + public: + MutexEngine(InspIRCd* Instance); + virtual Mutex* CreateMutex(); +}; + #endif -- cgit v1.2.3