thread.h
author tron
Sun, 28 Aug 2005 14:45:44 +0000
changeset 2374 e4443eab6293
parent 2286 733dbf6b4545
child 2380 392bba57462d
permissions -rw-r--r--
(svn r2900) Fix a bug, which incremented the counter of a loop twice and therefore calculated wrong argument indices
/* $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