summaryrefslogtreecommitdiff
path: root/include/threadengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/threadengine.h')
-rw-r--r--include/threadengine.h55
1 files changed, 0 insertions, 55 deletions
diff --git a/include/threadengine.h b/include/threadengine.h
index 79e545166..7849ab89d 100644
--- a/include/threadengine.h
+++ b/include/threadengine.h
@@ -59,58 +59,3 @@ public:
*/
virtual void Run() = 0;
};
-
-class CoreExport Mutex
-{
-protected:
- /* A mutex, used to keep threads in sync */
- pthread_mutex_t mutex;
-
-public:
- /** Constructor
- */
- Mutex();
-
- /** Destructor
- */
- ~Mutex();
-
- /** Attempt to lock the mutex, will hang until a lock can be achieved
- */
- void Lock();
-
- /** Unlock the mutex, it must be locked first
- */
- void Unlock();
-
- /** Attempt to lock the mutex, will return true on success and false on fail
- * Does not block
- * @return true or false
- */
- bool TryLock();
-};
-
-class CoreExport Condition
- : public Mutex
-{
-private:
- /* A condition */
- pthread_cond_t cond;
-
-public:
- /** Constructor
- */
- Condition();
-
- /** Destructor
- */
- ~Condition();
-
- /** Called to wakeup the waiter
- */
- void Wakeup();
-
- /** Called to wait for a Wakeup() call
- */
- void Wait();
-};