summaryrefslogtreecommitdiff
path: root/threading.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-07-04 03:56:35 +0200
committerGravatar waker <wakeroid@gmail.com>2009-07-04 03:56:35 +0200
commit516186b494d00c5dcb27f3f83cd8b9b7abbd6f46 (patch)
tree29fec73b5cc66e4bbd22bc55fc91a2e2af352dc1 /threading.h
parent6f16e4e363936722d7f3c3b819f787e947260310 (diff)
added separate thread for sdl stuff, to be able to pass messages
Diffstat (limited to 'threading.h')
-rw-r--r--threading.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/threading.h b/threading.h
new file mode 100644
index 00000000..6b2b9237
--- /dev/null
+++ b/threading.h
@@ -0,0 +1,13 @@
+#ifndef __THREADING_H
+#define __THREADING_H
+
+#include <stdint.h>
+
+void thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx);
+uintptr_t mutex_create (void);
+void mutex_free (uintptr_t mtx);
+int mutex_lock (uintptr_t mtx);
+int mutex_unlock (uintptr_t mtx);
+
+#endif
+