mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Add default arg to CScheduler to schedule() a callback now
This commit is contained in:
parent
cda1429d5b
commit
2fbf2dbe15
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ public:
|
||||||
typedef std::function<void(void)> Function;
|
typedef std::function<void(void)> Function;
|
||||||
|
|
||||||
// Call func at/after time t
|
// Call func at/after time t
|
||||||
void schedule(Function f, boost::chrono::system_clock::time_point t);
|
void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now());
|
||||||
|
|
||||||
// Convenience method: call f once deltaSeconds from now
|
// Convenience method: call f once deltaSeconds from now
|
||||||
void scheduleFromNow(Function f, int64_t deltaMilliSeconds);
|
void scheduleFromNow(Function f, int64_t deltaMilliSeconds);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue