38
|
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
|