]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/threadengine.h
Specify which Extensible subclass an ExtensionItem is valid for
[user/henk/code/inspircd.git] / include / threadengine.h
index 032da153917898ff2027071e93a5d920b0df6ea8..fec1bbb96f0d06ccac102e82d3cca44cafeeb93b 100644 (file)
@@ -26,8 +26,6 @@
 #include "config.h"
 #include "base.h"
 
-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!
@@ -41,7 +39,7 @@ class CoreExport Thread
 
        /** Opaque thread state managed by the ThreadEngine
         */
-       ThreadData state;
+       ThreadEngine::ThreadState state;
 
        /** ThreadEngine manages Thread::state
         */
@@ -62,9 +60,6 @@ class CoreExport Thread
        {
        }
 
-       /* If the thread is running, you MUST join BEFORE deletion */
-       virtual ~Thread();
-
        /** Override this method to put your actual
         * threaded code here.
         */