thread.h
author tron
Sat, 06 Aug 2005 16:55:05 +0000
changeset 2294 a938c5ecb1c4
parent 2286 acb76b379e72
child 2380 3b26659b4a9a
permissions -rw-r--r--
(svn r2818) Don't tell the world about a local variable which is only used once
/* $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