]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_namedpipe.cpp
Compile fixes for latest changes to trunk.
[user/henk/code/inspircd.git] / win / inspircd_namedpipe.cpp
index 36724366010575c741a3cc7e2702c8562e735f26..76d16037bf721bb51fe1e9286fc2b6fefa2e440d 100644 (file)
@@ -6,7 +6,7 @@
 #include <psapi.h>\r
 \r
 \r
-IPCThread::IPCThread(InspIRCd* Instance) : Thread(), ServerInstance(Instance)\r
+IPCThread::IPCThread()\r
 {\r
        if (!initwmi())\r
                ServerInstance->Logs->Log("IPC", DEBUG, "Could not initialise WMI. CPU percantage reports will not be available.");\r
@@ -127,11 +127,11 @@ void IPCThread::SetResult(int newresult)
 }\r
 \r
 \r
-IPC::IPC(InspIRCd* Srv) : ServerInstance(Srv)\r
+IPC::IPC()\r
 {\r
        /* The IPC pipe is threaded */\r
-       thread = new IPCThread(Srv);\r
-       Srv->Threads->Create(thread);\r
+       thread = new IPCThread();\r
+       ServerInstance->Threads->Start(thread);\r
 }\r
 \r
 void IPC::Check()\r