Class to wrap nlib_thread_attr
. nlib_thread_attr_init()
and nlib_thread_attr_destroy()
are run automatically as required.
More...
#include "nn/nlib/threading/Thread.h"
Class to wrap nlib_thread_attr
. nlib_thread_attr_init()
and nlib_thread_attr_destroy()
are run automatically as required.
Definition at line 16 of file Thread.h.
§ GetDetachState()
nn::nlib::threading::ThreadSettings::GetDetachState |
( |
| ) |
const |
|
inlinenoexcept |
Gets whether the thread is set to start in a detached state.
- Returns
true
if in a detached state.
Definition at line 35 of file Thread.h.
§ GetPriority()
nn::nlib::threading::ThreadSettings::GetPriority |
( |
| ) |
const |
|
inlinenoexcept |
Gets the thread priority.
- Returns
- Thread priority.
Definition at line 73 of file Thread.h.
§ GetStackSize()
nn::nlib::threading::ThreadSettings::GetStackSize |
( |
| ) |
const |
|
inlinenoexcept |
Returns the set stack size.
- Returns
- Stack size.
Definition at line 54 of file Thread.h.
§ SetDetachState()
nn::nlib::threading::ThreadSettings::SetDetachState |
( |
bool |
detached | ) |
|
|
inlinenoexcept |
Sets whether to start a thread in a detached state.
- Parameters
-
[in] | detached | Joinable if detached is false , or currently detached if detached is true . |
Definition at line 26 of file Thread.h.
§ SetPriority()
nn::nlib::threading::ThreadSettings::SetPriority |
( |
int |
priority | ) |
|
|
inlinenoexcept |
Sets the thread priority. The priority value is platform dependent.
- Parameters
-
[in] | priority | Priority of the thread. |
- Returns
- Returns 0 on success. Any other value indicates failure.
Definition at line 65 of file Thread.h.
§ SetStackSize()
nn::nlib::threading::ThreadSettings::SetStackSize |
( |
int |
size | ) |
|
|
inlinenoexcept |
Sets the stack size.
- Parameters
-
- Returns
- Returns 0 on success. Any other value indicates failure.
Definition at line 46 of file Thread.h.
The documentation for this struct was generated from the following files: