class CoreExport PThreadEngine : public ThreadEngine
{
- private:
-
- pthread_t MyPThread;
-
public:
PThreadEngine(InspIRCd* Instance);
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