µOS++ IIIe Reference 7.0.0
The third edition of µOS++, a POSIX inspired open source framework, written in C++
Loading...
Searching...
No Matches
os_thread_attr_s Struct Reference

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.
 

Detailed Description

Thread attributes.

Initialise this structure with os_thread_attr_init(), and then set any of the individual members directly.

See also
os::rtos::thread::attributes

Definition at line 501 of file os-c-decls.h.

Member Data Documentation

◆ clock

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 512 of file os-c-decls.h.

◆ th_enable_assert_reuse

bool os_thread_attr_s::th_enable_assert_reuse

Definition at line 551 of file os-c-decls.h.

◆ th_priority

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 546 of file os-c-decls.h.

◆ th_stack_address

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 520 of file os-c-decls.h.

◆ th_stack_size_bytes

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 534 of file os-c-decls.h.


The documentation for this struct was generated from the following file: