|
roo_threads
API Documentation for roo_threads
|
Optional thread attributes used by backend-specific constructors. More...
#include <thread_api.h>
Public Member Functions | |
| attributes () | |
| Creates default thread attributes. | |
| uint32_t | stack_size () const |
| Returns requested stack size in bytes. | |
| uint16_t | priority () const |
| Returns requested scheduler priority. | |
| bool | joinable () const |
| Returns whether the created thread is joinable. | |
| const char * | name () const |
Returns thread name, or nullptr if not set. | |
| void | set_stack_size (uint32_t stack_size) |
| Sets requested stack size in bytes. | |
| void | set_priority (uint16_t priority) |
| Sets requested scheduler priority. | |
| void | set_name (const char *name) |
| Sets thread name. | |
Optional thread attributes used by backend-specific constructors.
Definition at line 21 of file thread_api.h.
| roo_threads::doc::thread::attributes::attributes | ( | ) |
Creates default thread attributes.
| bool roo_threads::doc::thread::attributes::joinable | ( | ) | const |
Returns whether the created thread is joinable.
Returns thread name, or nullptr if not set.
| uint16_t roo_threads::doc::thread::attributes::priority | ( | ) | const |
Returns requested scheduler priority.
Sets thread name.
| name | zero-terminated name string. |
Sets requested scheduler priority.
| priority | scheduler priority. |
Sets requested stack size in bytes.
| stack_size | stack size in bytes. |
| uint32_t roo_threads::doc::thread::attributes::stack_size | ( | ) | const |
Returns requested stack size in bytes.