diff options
author | rubidium <rubidium@openttd.org> | 2011-05-01 19:14:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-01 19:14:12 +0000 |
commit | 1a515e6344028854c855671c19f49d8f869eb18f (patch) | |
tree | e1bba97c1a8fd80f564729cc2d5fc2049110cb2a /src/thread/thread.h | |
parent | b27dd1dcd7375dae63724879eb0f56dd703e5312 (diff) | |
download | openttd-1a515e6344028854c855671c19f49d8f869eb18f.tar.xz |
(svn r22405) -Document: some more "random-ish" tidbits
Diffstat (limited to 'src/thread/thread.h')
-rw-r--r-- | src/thread/thread.h | 5 |
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(); /** |