blob: 1f4878106fac23a936961eac05fac14ce48afd5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* $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
|