51 if (_global_ptr ==
nullptr) {
60 INLINE
void AsyncTaskManager::
62 if (!task->get_name().empty()) {
63 _tasks_by_name.insert(task);
A class to manage a loose queue of isolated tasks, which can be performed either synchronously (in th...
size_t get_num_tasks() const
Returns the number of tasks that are currently active or sleeping within the task manager.
A lightweight C++ object whose constructor calls acquire() and whose destructor calls release() on a ...
set_clock
Replaces the clock pointer used within the AsyncTaskManager.
A ClockObject keeps track of elapsed real time and discrete time.
This class represents a concrete task performed by an AsyncManager.
static AsyncTaskManager * get_global_ptr()
Returns a pointer to the global AsyncTaskManager.