summaryrefslogtreecommitdiff
path: root/include/threadengines/threadengine_pthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/threadengines/threadengine_pthread.h')
-rw-r--r--include/threadengines/threadengine_pthread.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h
index 4db1a6908..72fa1d219 100644
--- a/include/threadengines/threadengine_pthread.h
+++ b/include/threadengines/threadengine_pthread.h
@@ -23,21 +23,13 @@ class InspIRCd;
class CoreExport PThreadEngine : public ThreadEngine
{
- private:
-
- bool Mutex(bool enable);
-
public:
PThreadEngine(InspIRCd* Instance);
virtual ~PThreadEngine();
- void Run();
-
- static void* Entry(void* parameter);
-
- void Create(Thread* thread_to_init);
+ void Start(Thread* thread_to_init);
void FreeThread(Thread* thread);
@@ -56,12 +48,19 @@ class CoreExport ThreadEngineFactory : public classbase
}
};
+class CoreExport PThreadData : public ThreadData
+{
+ public:
+ pthread_t pthread_id;
+ void FreeThread(Thread* toFree);
+};
+
class CoreExport PosixMutex : public Mutex
{
private:
pthread_mutex_t putex;
public:
- PosixMutex(InspIRCd* Instance);
+ PosixMutex();
virtual void Enable(bool enable);
~PosixMutex();
};