comparison 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
comparison
equal deleted inserted replaced
37:b346b6608eab 38:71b465ff0622
1 #ifndef SIMPLE_THREAD
2 #define SIMPLE_THREAD
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <stddef.h>
9
10 typedef struct SimpleThread SimpleThread;
11
12
13 SimpleThread* SimpleThread_CreateThread(int (*user_function)(void*), void* user_data);
14
15 size_t SimpleThread_GetCurrentThreadID(void);
16 size_t SimpleThread_GetThreadID(SimpleThread* simple_thread);
17
18 void SimpleThread_WaitThread(SimpleThread* simple_thread, int* thread_status);
19
20
21 int SimpleThread_GetThreadPriority(SimpleThread* simple_thread);
22 void SimpleThread_SetThreadPriority(SimpleThread* simple_thread, int priority_level);
23
24 /* Ends C function definitions when using C++ */
25 #ifdef __cplusplus
26 }
27 #endif
28
29 #endif
30