A global variable with a task-specific value. More...
Public Member Functions | |
T & | operator* () &noexcept |
Get the current task's value. | |
T * | operator-> () noexcept |
Access a member of the current task's value. | |
task_local () | |
Create a task-local variable. | |
task_local (task_local &&)=delete | |
It would not be clear whether moving a task_local applied to the (current) value or the identity of the variable. | |
A global variable with a task-specific value.
Must be constructed before running the control model (or start
). The value for a task has the lifetime of that task; the value outside of any task has the lifetime of the control model execution. Each is value-initialized.
task_local | ( | ) |
Create a task-local variable.
|
delete |
It would not be clear whether moving a task_local
applied to the (current) value or the identity of the variable.
|
noexcept |
Get the current task's value.
|
noexcept |
Access a member of the current task's value.