]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/threadengines/threadengine_pthread.h
Remove SpanningTreeProtocolInterface::SendOperNotice - it was translated to a SendSNO...
[user/henk/code/inspircd.git] / include / threadengines / threadengine_pthread.h
index db32acbcc44dad82443ee8bcf701b6f04138131b..602484b4e548f4ae8e88dcc330bc42197d7251dc 100644 (file)
@@ -23,10 +23,6 @@ class InspIRCd;
 
 class CoreExport PThreadEngine : public ThreadEngine
 {
- private:
-
-        pthread_t MyPThread;
-
  public:
 
        PThreadEngine(InspIRCd* Instance);
@@ -40,6 +36,22 @@ class CoreExport PThreadEngine : public ThreadEngine
        static void* Entry(void* parameter);
 
        void Create(Thread* thread_to_init);
+
+       void FreeThread(Thread* thread);
+
+       const std::string GetName()
+       {
+               return "posix-thread";
+       }
+};
+
+class CoreExport ThreadEngineFactory : public classbase
+{
+ public:
+       ThreadEngine* Create(InspIRCd* ServerInstance)
+       {
+               return new PThreadEngine(ServerInstance);
+       }
 };
 
 #endif