summaryrefslogtreecommitdiff
path: root/thread.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-09-02 16:05:59 +0000
committerDarkvater <Darkvater@openttd.org>2005-09-02 16:05:59 +0000
commita948fcb6055b5aaf3086913a96e623296d62ef37 (patch)
tree770995fa006874ecf7f11983a589bd239a3e85a0 /thread.h
parentacf442102a19ef8cb27f6dbc22668e39d4d59af4 (diff)
downloadopenttd-a948fcb6055b5aaf3086913a96e623296d62ef37.tar.xz
(svn r2906) Fix some threaded saving problems. Now the thread only interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
Diffstat (limited to 'thread.h')
-rw-r--r--thread.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/thread.h b/thread.h
index 73cea8c57..66e0ceea3 100644
--- a/thread.h
+++ b/thread.h
@@ -3,12 +3,6 @@
#ifndef THREAD_H
#define THREAD_H
-/*
- * DO NOT USE THREADS if you don't know what race conditions, mutexes,
- * semaphores, atomic operations, etc. are or how to properly handle them.
- * Ask somebody who has a clue.
- */
-
typedef struct Thread Thread;
typedef void* (*ThreadFunc)(void*);
@@ -16,4 +10,4 @@ typedef void* (*ThreadFunc)(void*);
Thread* OTTDCreateThread(ThreadFunc, void*);
void* OTTDJoinThread(Thread*);
-#endif
+#endif /* THREAD_H */