#include <timer.h>
|
| template<typename callable , class... arguments> |
| void | AsyncWait (int after, callable &&f, arguments &&...args) |
| |
| void | Expire () |
| |
| void | StartTimer (int interval, std::function< void()> task) |
| |
| template<typename callable , class... arguments> |
| void | SyncWait (int after, callable &&f, arguments &&...args) |
| |
| | Timer () |
| |
| | Timer (const Timer &t) |
| |
| | ~Timer () |
| |
Definition at line 23 of file timer.h.
| Timer::Timer |
( |
const Timer & |
t | ) |
|
|
inline |
template<typename callable , class... arguments>
| void Timer::AsyncWait |
( |
int |
after, |
|
|
callable && |
f, |
|
|
arguments &&... |
args |
|
) |
| |
|
inline |
| void Timer::StartTimer |
( |
int |
interval, |
|
|
std::function< void()> |
task |
|
) |
| |
|
inline |
template<typename callable , class... arguments>
| void Timer::SyncWait |
( |
int |
after, |
|
|
callable && |
f, |
|
|
arguments &&... |
args |
|
) |
| |
|
inline |
| std::atomic<bool> Timer::expired_ |
|
private |
| std::condition_variable Timer::expired_cond_ |
|
private |
| std::atomic<bool> Timer::try_to_expire_ |
|
private |
The documentation for this class was generated from the following file: