#include <timeout.h>
|
template<class callable , class... arguments> |
| timeout (int timeout_ms, bool async, callable &&f, arguments &&... args) |
| Start a timeout with millisecond resolution. More...
|
|
Definition at line 36 of file timeout.h.
◆ timeout()
template<class callable , class... arguments>
core::ubuntu::media::timeout::timeout |
( |
int |
timeout_ms, |
|
|
bool |
async, |
|
|
callable && |
f, |
|
|
arguments &&... |
args |
|
) |
| |
|
inline |
Start a timeout with millisecond resolution.
- Parameters
-
timeout_ms | Timeout value in milliseconds |
async | Whether to block while the timeout proceeds or not |
f | The function to call when the timeout expires |
args | Any arguments to pass to f when the timeout expires |
Definition at line 47 of file timeout.h.
The documentation for this class was generated from the following file:
- /build/media-hub-S7nDym/media-hub-4.6.0+17.04.20170217/src/core/media/util/timeout.h