summaryrefslogtreecommitdiff
path: root/src/thread/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread/thread.h')
-rw-r--r--src/thread/thread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/thread/thread.h b/src/thread/thread.h
index 98c48d15d..83eeb73eb 100644
--- a/src/thread/thread.h
+++ b/src/thread/thread.h
@@ -12,8 +12,10 @@
#ifndef THREAD_H
#define THREAD_H
+/** Definition of all thread entry functions. */
typedef void (*OTTDThreadFunc)(void *);
+/** Signal used for signalling we knowingly want to end the thread. */
class OTTDThreadExitSignal { };
/**
@@ -52,6 +54,9 @@ public:
*/
class ThreadMutex {
public:
+ /**
+ * Create a new mutex.
+ */
static ThreadMutex *New();
/**