aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Mthread.h
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-03-19 15:32:16 +0100
committerXTZGZoReX <none@none>2009-03-19 15:32:16 +0100
commita075d37fdda31bca4a116444f7ce893f8e596bf8 (patch)
tree28e2153158cf59ffe7c019c8d4a49c2220cb01e9 /src/shared/Mthread.h
parent3ff11b64bae87a8c33aede71816ed7fb8b82f766 (diff)
* Removed unused/unneeded classes: Base, Mthread
* Fixed a merge issue that broke VC71 files. * Moved WheatyExceptionReport to shared, where it should be. --HG-- branch : trunk
Diffstat (limited to 'src/shared/Mthread.h')
-rw-r--r--src/shared/Mthread.h63
1 files changed, 0 insertions, 63 deletions
diff --git a/src/shared/Mthread.h b/src/shared/Mthread.h
deleted file mode 100644
index d0ac6deb43c..00000000000
--- a/src/shared/Mthread.h
+++ /dev/null
@@ -1,63 +0,0 @@
-#ifndef MTHREAD_H
-#define MTHREAD_H
-
-#include "Base.h"
-#ifndef WIN32
-#include <pthread.h>
-#else
-#include <windows.h>
-//#include "Process.h"
-#define WIN32_THREAD_STACK_SIZE 0x10000
-#endif
-
-enum ThreadPriority
-{
- IDLE,
- LOWER,
- LOW,
- NORMAL,
- HIGH,
- HIGHER,
- REALTIME
-};
-
-class MThread: public Base
-{
- public:
- static MThread *Start (void (*routine) (void *arg), void *arg);
- MThread ();
- ~MThread ();
- bool SetPriority (ThreadPriority prio);
-
- void (*routine) (void *arg);
- void *arg;
-
- #ifdef WIN32
- HANDLE th;
- ULONG id;
- #else
- pthread_t tid;
- #endif
-
-};
-
-class MMutex : public Base
-{
- public:
-
- #ifdef WIN32
- HANDLE sem;
- #else
- pthread_mutex_t mutex;
- static pthread_mutexattr_t attr;
- static int attr_refcount;
- #endif
- static MMutex *Create ();
- MMutex ();
- virtual ~MMutex ();
- virtual bool Lock ();
- virtual bool TryLock ();
- virtual void Unlock ();
-};
-#endif // MTHREAD_H
-