diff options
author | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-08 17:29:16 -0500 |
commit | b5ff856f47d8e54d12c568462a06351633c29610 (patch) | |
tree | a4e2f96c59ee49aa5e6cacdfd30db6155151ad36 /include/threadengine.h | |
parent | 97b9055f92f21cd91af44a3d5dacce0024536cff (diff) |
Windows
Diffstat (limited to 'include/threadengine.h')
-rw-r--r-- | include/threadengine.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/threadengine.h b/include/threadengine.h index 06c4900a4..b840092d4 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -1,17 +1,6 @@ #ifndef THREADENGINE_H #define THREADENGINE_H -#ifdef _WIN32 -typedef HANDLE ThreadHandle; -typedef CRITICAL_SECTION MutexHandle; -typedef HANDLE CondHandle; -#else -# include <pthread.h> -typedef pthread_t ThreadHandle; -typedef pthread_mutex_t MutexHandle; -typedef pthread_cond_t CondHandle; -#endif - class Thread; class CoreExport Thread : public Pipe, public Extensible @@ -22,7 +11,7 @@ class CoreExport Thread : public Pipe, public Extensible public: /* Handle for this thread */ - ThreadHandle Handle; + pthread_t Handle; /** Threads constructor */ @@ -66,7 +55,7 @@ class CoreExport Mutex { protected: /* A mutex, used to keep threads in sync */ - MutexHandle mutex; + pthread_mutex_t mutex; public: /** Constructor @@ -96,7 +85,7 @@ class CoreExport Condition : public Mutex { private: /* A condition */ - CondHandle cond; + pthread_cond_t cond; public: /** Constructor |