vt::ctx::SetContext struct

Set the context of the current running task for query by other components or users.

Constructors, destructors, conversion operators

SetContext() defaulted
SetContext(runnable::RunnableNew* in_cur_task, NodeType in_from_node)
Construct a SetContext.

Public functions

auto get() const -> NodeType
Get the node that instigated the current task.
void start()
Preserve the existing task and replace with a new one.
void finish()
Restore the previous existing task to the context (if there was one)
void suspend()
void resume()

Function documentation

vt::ctx::SetContext::SetContext(runnable::RunnableNew* in_cur_task, NodeType in_from_node)

Construct a SetContext.

Parameters
in_cur_task
in_from_node in the from node on the message that caused a task to run

NodeType vt::ctx::SetContext::get() const

Get the node that instigated the current task.

Returns the node