mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
c78af95d1d
Also add the new files to the MSVC project files.
20 lines
387 B
C
20 lines
387 B
C
/* $Id$ */
|
|
|
|
#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*);
|
|
|
|
Thread* OTTDCreateThread(ThreadFunc, void*);
|
|
void* OTTDJoinThread(Thread*);
|
|
|
|
#endif
|