omni::graph::exec::unstable::getCurrentExecutor
Defined in omni/graph/exec/unstable/IExecutionCurrentThread.h
-
inline IExecutor *omni::graph::exec::unstable::getCurrentExecutor() noexcept
Access executor currently used on the current thread.
Useful when needing to spawn extra work within the scope of the graph.
The returned IExecutor does not have omni::core::IObject::acquire() called before being returned.
May return
nullptr
if an executor is not executing on the current thread. Note,nullptr
may be returned even if omni::graph::exec::unstable::getCurrentTask() returns a valid value (the use of executors is not a strict requirement).- Thread Safety
This method is thread safe.