Mercurial > almixer_isolated
diff Isolated/SimpleThread.h @ 38:71b465ff0622
Added support files.
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Thu, 28 Apr 2011 16:22:30 -0700 |
parents | |
children | 208a9ed20087 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Isolated/SimpleThread.h Thu Apr 28 16:22:30 2011 -0700 @@ -0,0 +1,30 @@ +#ifndef SIMPLE_THREAD +#define SIMPLE_THREAD + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stddef.h> + +typedef struct SimpleThread SimpleThread; + + +SimpleThread* SimpleThread_CreateThread(int (*user_function)(void*), void* user_data); + +size_t SimpleThread_GetCurrentThreadID(void); +size_t SimpleThread_GetThreadID(SimpleThread* simple_thread); + +void SimpleThread_WaitThread(SimpleThread* simple_thread, int* thread_status); + + +int SimpleThread_GetThreadPriority(SimpleThread* simple_thread); +void SimpleThread_SetThreadPriority(SimpleThread* simple_thread, int priority_level); + +/* Ends C function definitions when using C++ */ +#ifdef __cplusplus +} +#endif + +#endif +