thread.h
author bjarni
Thu, 03 Nov 2005 19:51:28 +0000
changeset 2590 64e3f69a4ad8
parent 2380 392bba57462d
child 4298 b926a6eaaa70
permissions -rw-r--r--
(svn r3127) -Fix: [autoreplace] fixed a condition where a vehicle could fail to stop when autoreplacing
this would result in the construction of a new vehicle while the old one just continued
added an assert to make sure it's always stopped before trying to sell the old vehicle
/* $Id$ */

#ifndef THREAD_H
#define THREAD_H

typedef struct Thread Thread;

typedef void* (*ThreadFunc)(void*);

Thread* OTTDCreateThread(ThreadFunc, void*);
void*   OTTDJoinThread(Thread*);

#endif /* THREAD_H */