view thread.h @ 2444:c1145552a533 draft

(svn r2970) - Newgrf: Allocate spritegroups dynamically; this allows a cargo ID to reference the previous definition of the same cargo ID, instead of causing loops.
author peter1138 <peter1138@openttd.org>
date Thu, 22 Sep 2005 20:35:20 +0000
parents bdb7027b3cfb
children cf32d743128e
line wrap: on
line source

/* $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 */