diff options
| author | Matt Corallo <[email protected]> | 2017-01-20 15:10:43 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-07-07 11:33:18 -0400 |
| commit | 2fbf2dbe151e135586cc1bb05b891f2c8ab6c817 (patch) | |
| tree | 6e338cd312bd30b1da98951af48aa885bb922d07 /src/scheduler.h | |
| parent | Give CMainSignals a reference to the global scheduler (diff) | |
| download | discoin-2fbf2dbe151e135586cc1bb05b891f2c8ab6c817.tar.xz discoin-2fbf2dbe151e135586cc1bb05b891f2c8ab6c817.zip | |
Add default arg to CScheduler to schedule() a callback now
Diffstat (limited to 'src/scheduler.h')
| -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 27412a15b..5da6e6f69 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); |