From 516186b494d00c5dcb27f3f83cd8b9b7abbd6f46 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 4 Jul 2009 03:56:35 +0200 Subject: added separate thread for sdl stuff, to be able to pass messages --- threading.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 threading.h (limited to 'threading.h') 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 + +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 + -- cgit v1.2.3