thread.h
author rubidium
Thu, 08 Feb 2007 10:04:57 +0000
branch0.5
changeset 5428 ef4e98d1a511
parent 4300 687a17c9c557
permissions -rw-r--r--
(svn r8624) [0.5] -Backport from trunk (8239, 8240, 8315):
-Regression (r7278): Help window was empty for UNICODE builds
-Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
-Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available
/* $Id$ */

#ifndef THREAD_H
#define THREAD_H

typedef struct OTTDThread OTTDThread;

typedef void* (*OTTDThreadFunc)(void*);

OTTDThread* OTTDCreateThread(OTTDThreadFunc, void*);
void*       OTTDJoinThread(OTTDThread*);
void        OTTDExitThread(void);

#endif /* THREAD_H */