|
Hermes 0.7.0
Linux game streaming host
|
Classes | |
| class | timer_task_t |
Public Types | |
| typedef std::unique_ptr< _ImplBase > | __task |
| typedef _ImplBase * | task_id_t |
| typedef std::chrono::steady_clock::time_point | __time_point |
Public Member Functions | |
| TaskPool (TaskPool &&other) noexcept | |
| TaskPool & | operator= (TaskPool &&other) noexcept |
| template<class Function, class... Args> | |
| auto | push (Function &&newTask, Args &&...args) |
| void | pushDelayed (std::pair< __time_point, __task > &&task) |
| template<class Function, class X, class Y, class... Args> | |
| auto | pushDelayed (Function &&newTask, std::chrono::duration< X, Y > duration, Args &&...args) |
| template<class X, class Y> | |
| void | delay (task_id_t task_id, std::chrono::duration< X, Y > duration) |
| bool | cancel (task_id_t task_id) |
| std::optional< std::pair< __time_point, __task > > | pop (task_id_t task_id) |
| std::optional< __task > | pop () |
| bool | ready () |
| std::optional< __time_point > | next () |
Protected Attributes | |
| std::deque< __task > | _tasks |
| std::vector< std::pair< __time_point, __task > > | _timer_tasks |
| std::mutex | _task_mutex |
Definition at line 47 of file task_pool.h.
| typedef std::unique_ptr<_ImplBase> task_pool_util::TaskPool::__task |
Definition at line 49 of file task_pool.h.
| typedef std::chrono::steady_clock::time_point task_pool_util::TaskPool::__time_point |
Definition at line 52 of file task_pool.h.
| typedef _ImplBase* task_pool_util::TaskPool::task_id_t |
Definition at line 50 of file task_pool.h.
|
inlinenoexcept |
Definition at line 74 of file task_pool.h.
|
inline |
Definition at line 188 of file task_pool.h.
|
inline |
| task_id | The id of the task to delay. |
| duration | The delay before executing the task. |
Definition at line 158 of file task_pool.h.
|
inline |
Definition at line 243 of file task_pool.h.
|
inlinenoexcept |
Definition at line 79 of file task_pool.h.
|
inline |
Definition at line 219 of file task_pool.h.
|
inline |
Definition at line 205 of file task_pool.h.
|
inline |
Definition at line 87 of file task_pool.h.
|
inline |
Definition at line 124 of file task_pool.h.
|
inline |
Definition at line 107 of file task_pool.h.
|
inline |
Definition at line 237 of file task_pool.h.
|
protected |
Definition at line 69 of file task_pool.h.
|
protected |
Definition at line 67 of file task_pool.h.
|
protected |
Definition at line 68 of file task_pool.h.