Files @ r2348:cfac32fe88af
Branch filter:

Location: cpp/openttd-patchpack/source/thread.h

miham
(svn r2874) [Translations] Updating translations to 2005-08-16 {@946} (24 langs changed)
/* $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