X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fthreadengine.h;h=fec1bbb96f0d06ccac102e82d3cca44cafeeb93b;hb=4fc2f7199e964ba5112ecdb2613c6fd5c2eee638;hp=032da153917898ff2027071e93a5d920b0df6ea8;hpb=f8d18d82c707f4ac2de04e96fe55cdfd39374bbc;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/threadengine.h b/include/threadengine.h index 032da1539..fec1bbb96 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -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. */