X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fthreadengines%2Fthreadengine_pthread.h;h=602484b4e548f4ae8e88dcc330bc42197d7251dc;hb=8c2d96013084de950e3a63be4ae6ed626c4093ab;hp=2c821d93dbe85d125c0186a9b708a7081c8acf5b;hpb=11c08b9aed1792705e5d82b343fae6ce56910338;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h index 2c821d93d..602484b4e 100644 --- a/include/threadengines/threadengine_pthread.h +++ b/include/threadengines/threadengine_pthread.h @@ -38,6 +38,20 @@ class CoreExport PThreadEngine : public ThreadEngine 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