Mercurial > almixer_isolated
view Isolated/SimpleThread.h @ 40:2b0b55b7f8cf
Resync to get interruption changes.
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Fri, 19 Aug 2011 12:36:50 -0700 |
parents | 71b465ff0622 |
children | 208a9ed20087 |
line wrap: on
line source
#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