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
83 #define OSAPI_THREAD_SUSPEND_ENABLE 0x40
88 struct OSAPI_ThreadProperty
91 RTI_UINT32 stack_size;
97 OSAPI_ThreadOptions options;
103 #define OSAPI_THREAD_PROPERTY_DEFAULT \
105 OSAPI_THREAD_USE_OSDEFAULT_STACKSIZE, \
106 OSAPI_THREAD_PRIORITY_NORMAL, \
107 OSAPI_THREAD_DEFAULT_OPTIONS \
110 #define OSAPI_ThreadProperty_INITIALIZER OSAPI_THREAD_PROPERTY_DEFAULT
136 FUNCTION_SHOULD_TYPEDEF(
166 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
179 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
192 MUST_CHECK_RETURN OSAPIDllExport RTI_BOOL
225 MUST_CHECK_RETURN OSAPIDllExport
struct OSAPI_Thread*
227 const struct OSAPI_ThreadProperty *properties,
241 OSAPIDllExport OSAPI_ThreadId