thread.h
changeset 2285 3193cbd1ba88
child 2286 acb76b379e72
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/thread.h	Fri Aug 05 09:15:41 2005 +0000
@@ -0,0 +1,19 @@
+/* $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