Mercurial > almixer_isolated
view Isolated/SimpleThread.h @ 55:8b4f80233969
merged
author | Eric Wing <ewing@anscamobile.com> |
---|---|
date | Tue, 29 May 2012 19:41:59 -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