omni::graph::exec::unstable::SerialScheduler

Defined in omni/graph/exec/unstable/Executor.h

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.