|
Shaka Player Embedded
|
#include <task_runner.h>
Public Types | |
| using | Ret = typename std::result_of< Func()>::type |
Public Member Functions | |
| PendingTask (const util::Clock *clock, Func &&callback, const std::string &name, TaskPriority priority, uint64_t delay_ms, int id, bool loop) | |
| void | Call () override |
Public Member Functions inherited from shaka::impl::PendingTaskBase | |
| PendingTaskBase (const util::Clock *clock, TaskPriority priority, uint64_t delay_ms, int id, bool loop) | |
| virtual | ~PendingTaskBase () |
Public Attributes | |
| std::decay< Func >::type | callback |
| std::shared_ptr< ThreadEvent< Ret > > | event |
Public Attributes inherited from shaka::impl::PendingTaskBase | |
| uint64_t | start_ms |
| const uint64_t | delay_ms |
| const TaskPriority | priority |
| const int | id |
| const bool | loop |
| std::atomic< bool > | should_remove |
The implementation of a pending task. This stores a copy of the object that will be called. This will also trace the object so it remains alive. For example, this ensures that a BackingObject remains alive until an event is raised.
Definition at line 82 of file task_runner.h.
| using shaka::impl::PendingTask< Func >::Ret = typename std::result_of<Func()>::type |
Definition at line 87 of file task_runner.h.
|
inline |
Definition at line 89 of file task_runner.h.
|
inlineoverridevirtual |
Performs the task.
Implements shaka::impl::PendingTaskBase.
Definition at line 96 of file task_runner.h.
| std::decay<Func>::type shaka::impl::PendingTask< Func >::callback |
Definition at line 109 of file task_runner.h.
| std::shared_ptr<ThreadEvent<Ret> > shaka::impl::PendingTask< Func >::event |
Definition at line 110 of file task_runner.h.
1.8.13