diff options
author | Matt Corallo <git@bluematt.me> | 2017-01-20 15:10:43 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-07-07 11:33:18 -0400 |
commit | 2fbf2dbe151e135586cc1bb05b891f2c8ab6c817 (patch) | |
tree | 6e338cd312bd30b1da98951af48aa885bb922d07 | |
parent | cda1429d5bfee129a0d1f6f1c65962b30251bafb (diff) |
Add default arg to CScheduler to schedule() a callback now
-rw-r--r-- | src/scheduler.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scheduler.h b/src/scheduler.h index 27412a15b4..5da6e6f69f 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -41,7 +41,7 @@ public: typedef std::function<void(void)> Function; // 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 void scheduleFromNow(Function f, int64_t deltaMilliSeconds); |