Files
@ r2372:a11aa4a17996
Branch filter:
Location: cpp/openttd-patchpack/source/thread.h - annotation
r2372:a11aa4a17996
387 B
text/x-c
(svn r2898) Fix typo in r2897
r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2286:58effb75ae88 r2285:47dd485c1ae4 r2285:47dd485c1ae4 r2286:58effb75ae88 r2285:47dd485c1ae4 r2285:47dd485c1ae4 | /* $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
|