SerialScheduler#

Fully qualified name: omni::graph::exec::unstable::SerialScheduler

struct SerialScheduler#

Basic scheduler which executes the task on calling thread and accumulates the result.

Public Functions

inline SerialScheduler(IExecutionContext *context)#

Constructor.

template<typename Fn>
inline Status schedule(
Fn &&task,
SchedulingInfo,
)#

Serial scheduler will emplace the task on serial queue and dispatch one by one after entering process loop.

inline Status getStatus()#

Enter processing of tasks and return accumulated status.