diff options
Diffstat (limited to 'src/thread.h')
-rw-r--r-- | src/thread.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/thread.h b/src/thread.h new file mode 100644 index 000000000..900b87849 --- /dev/null +++ b/src/thread.h @@ -0,0 +1,14 @@ +/* $Id$ */ + +#ifndef THREAD_H +#define THREAD_H + +typedef struct OTTDThread OTTDThread; + +typedef void* (*OTTDThreadFunc)(void*); + +OTTDThread* OTTDCreateThread(OTTDThreadFunc, void*); +void* OTTDJoinThread(OTTDThread*); +void OTTDExitThread(void); + +#endif /* THREAD_H */ |