summaryrefslogtreecommitdiff
path: root/thread.h
blob: 73cea8c57a385fffbd97a6b34e324aadcbdc5631 (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