diff options
Diffstat (limited to 'include/threadengines/threadengine_win32.h')
-rw-r--r-- | include/threadengines/threadengine_win32.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/include/threadengines/threadengine_win32.h b/include/threadengines/threadengine_win32.h index d6d98b011..3388cead0 100644 --- a/include/threadengines/threadengine_win32.h +++ b/include/threadengines/threadengine_win32.h @@ -22,23 +22,15 @@ class InspIRCd; class CoreExport Win32ThreadEngine : public ThreadEngine { - protected: - - bool Mutex(bool enable); - public: Win32ThreadEngine(InspIRCd* Instance); virtual ~Win32ThreadEngine(); - void Run(); - static DWORD WINAPI Entry(void* parameter); - void Create(Thread* thread_to_init); - - void FreeThread(Thread* thread); + void Start(Thread* thread_to_init); const std::string GetName() { @@ -55,12 +47,19 @@ class CoreExport ThreadEngineFactory : public classbase } }; +class CoreExport Win32ThreadData : public ThreadData +{ + public: + HANDLE handle; + void FreeThread(Thread* toFree); +}; + class CoreExport Win32Mutex : public Mutex { private: CRITICAL_SECTION wutex; public: - Win32Mutex(InspIRCd* Instance); + Win32Mutex(); virtual void Enable(bool enable); ~Win32Mutex(); }; |