aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-20 15:10:43 -0500
committerMatt Corallo <git@bluematt.me>2017-07-07 11:33:18 -0400
commit2fbf2dbe151e135586cc1bb05b891f2c8ab6c817 (patch)
tree6e338cd312bd30b1da98951af48aa885bb922d07
parentcda1429d5bfee129a0d1f6f1c65962b30251bafb (diff)
Add default arg to CScheduler to schedule() a callback now
-rw-r--r--src/scheduler.h2
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);