Monado OpenXR Runtime
|
Class to let users fall into a pit of success by being designed as a one shot dispatcher instance. More...
#include <util/u_worker.hpp>
Public Types | |
typedef std::function< void()> | Functor |
Public Member Functions | |
TaskCollection (SharedThreadGroup const &stc, std::vector< Functor > const &funcs) | |
Give all Functors when constructed, some what partially avoids use after leaving scope issues of function delegates. More... | |
void | waitAll () |
Waits for all given tasks to complete, also frees the group. More... | |
TaskCollection (TaskCollection const &)=delete | |
TaskCollection (TaskCollection &&)=delete | |
TaskCollection & | operator= (TaskCollection const &)=delete |
TaskCollection & | operator= (TaskCollection &&)=delete |
Class to let users fall into a pit of success by being designed as a one shot dispatcher instance.
|
inline |
Give all Functors when constructed, some what partially avoids use after leaving scope issues of function delegates.
References u_worker_group_push(), and u_worker_group_reference().
|
inline |
Waits for all given tasks to complete, also frees the group.
References u_worker_group_reference(), and u_worker_group_wait_all().