18 #ifndef osapi_thread_h
19 #define osapi_thread_h
23 #include "osapi/osapi_dll.h"
41 #define OSAPI_THREAD_PRIORITY_LOW -1
42 #define OSAPI_THREAD_PRIORITY_BELOW_NORMAL -2
43 #define OSAPI_THREAD_PRIORITY_NORMAL -3
44 #define OSAPI_THREAD_PRIORITY_ABOVE_NORMAL -4
45 #define OSAPI_THREAD_PRIORITY_HIGH -5
47 #define OSAPI_THREAD_USE_OSDEFAULT_STACKSIZE 0
57 #define OSAPI_THREAD_DEFAULT_OPTIONS 0x00
61 #define OSAPI_THREAD_FLOATING_POINT 0x01
65 #define OSAPI_THREAD_STDIO 0x02
69 #define OSAPI_THREAD_REALTIME_PRIORITY 0x08
73 #define OSAPI_THREAD_PRIORITY_ENFORCE 0x10
77 #define OSAPI_THREAD_CANCEL_ASYNCHRONOUS 0x20
82 struct OSAPI_ThreadProperty
85 RTI_UINT32 stack_size;
91 OSAPI_ThreadOptions options;
97 #define OSAPI_THREAD_PROPERTY_DEFAULT \
99 OSAPI_THREAD_USE_OSDEFAULT_STACKSIZE, \
100 OSAPI_THREAD_PRIORITY_NORMAL, \
101 OSAPI_THREAD_DEFAULT_OPTIONS \
104 #define OSAPI_ThreadProperty_INITIALIZER OSAPI_THREAD_PROPERTY_DEFAULT
130 FUNCTION_SHOULD_TYPEDEF(
160 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
173 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
186 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
219 MUST_CHECK_RETURN OSAPIDllExport
struct OSAPI_Thread*
221 const struct OSAPI_ThreadProperty *properties,
235 OSAPIDllExport OSAPI_ThreadId