Thread attributes. More...
#include <cmsis-plus/rtos/os-c-api.h>
Public Attributes | |
| void * | clock |
| Address of the clock to use for timeouts. | |
| bool | th_enable_assert_reuse |
| os_thread_prio_t | th_priority |
| Thread initial priority. | |
| void * | th_stack_address |
| Address of the user defined storage for the thread stack. | |
| size_t | th_stack_size_bytes |
| Size of the user defined storage for the thread stack, in bytes. | |
Thread attributes.
Initialise this structure with os_thread_attr_init(), and then set any of the individual members directly.
Definition at line 492 of file os-c-decls.h.
| void* os_thread_attr_s::clock |
Address of the clock to use for timeouts.
It may be os_clock_get_sysclock(), os_clock_get_rtclock(), or any other user object derived from class clock.
If NULL, the default is sysclock.
Definition at line 503 of file os-c-decls.h.
| bool os_thread_attr_s::th_enable_assert_reuse |
Definition at line 542 of file os-c-decls.h.
| os_thread_prio_t os_thread_attr_s::th_priority |
Thread initial priority.
If 0, the default is os_thread_priority_normal.
A convenient and explicit variant to this attribute is to call os_thread_set_priority() at the beginning of the thread function.
Definition at line 537 of file os-c-decls.h.
| void* os_thread_attr_s::th_stack_address |
Address of the user defined storage for the thread stack.
If NULL, the default is to dynamically allocate the stack.
Definition at line 511 of file os-c-decls.h.
| size_t os_thread_attr_s::th_stack_size_bytes |
Size of the user defined storage for the thread stack, in bytes.
If 0, the default is os_thread_stack_get_default_size().
A convenient and explicit variant to this attribute is to call os_thread_stack_set_default_size () just before creating the thread. However mind setting this from different threads at the same time.
Definition at line 525 of file os-c-decls.h.