tron@2285: /* $Id$ */ tron@2285: tron@2285: #ifndef THREAD_H tron@2285: #define THREAD_H tron@2285: tron@2285: /* tron@2285: * DO NOT USE THREADS if you don't know what race conditions, mutexes, tron@2285: * semaphores, atomic operations, etc. are or how to properly handle them. tron@2285: * Ask somebody who has a clue. tron@2285: */ tron@2285: tron@2285: typedef struct Thread Thread; tron@2285: tron@2286: typedef void* (*ThreadFunc)(void*); tron@2285: tron@2285: Thread* OTTDCreateThread(ThreadFunc, void*); tron@2286: void* OTTDJoinThread(Thread*); tron@2285: tron@2285: #endif