#include "inspircd_config.h"
#include "base.h"
-class InspIRCd;
class Thread;
/** The ThreadEngine class has the responsibility of initialising
* access non-threadsafe code from a Thread, use the Mutex class to wrap
* access to the code carefully.
*/
-class CoreExport ThreadEngine : public Extensible
+class CoreExport ThreadEngine
{
public:
- ThreadEngine(InspIRCd* Instance);
+ ThreadEngine();
virtual ~ThreadEngine();
private:
CRITICAL_SECTION wutex;
public:
- Win32Mutex()
+ Mutex()
{
InitializeCriticalSection(&wutex);
}
{
LeaveCriticalSection(&wutex);
}
- ~Win32Mutex()
+ ~Mutex()
{
DeleteCriticalSection(&wutex);
}