]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/threadengine.h
Use binary comparison of IP addresses when checking reverse/forward DNS match; fixes...
[user/henk/code/inspircd.git] / include / threadengine.h
index e1400eb9521acbd6989329cbcf96601207913e1f..c11f2d817734d58a7de096b2836a8cf20b843a63 100644 (file)
 #include "inspircd_config.h"
 #include "base.h"
 
+#ifdef WINDOWS
+#include "threadengines/threadengine_win32.h"
+#endif
+
+class ThreadData;
+
 /** Derive from this class to implement your own threaded sections of
  * code. Be sure to keep your code thread-safe and not prone to deadlocks
  * and race conditions if you MUST use threading!
@@ -49,17 +55,7 @@ class CoreExport Thread : public Extensible
        {
        }
 
-       /** If this thread has a Creator set, call it to
-        * free the thread
-        */
-       virtual ~Thread()
-       {
-               if (state)
-               {
-                       state->FreeThread(this);
-                       delete state;
-               }
-       }
+       virtual ~Thread();
 
        /** Override this method to put your actual
         * threaded code here.