Skip to content

Commit 2fbf2db

Browse files
committed
Add default arg to CScheduler to schedule() a callback now
1 parent cda1429 commit 2fbf2db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scheduler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class CScheduler
4141
typedef std::function<void(void)> Function;
4242

4343
// Call func at/after time t
44-
void schedule(Function f, boost::chrono::system_clock::time_point t);
44+
void schedule(Function f, boost::chrono::system_clock::time_point t=boost::chrono::system_clock::now());
4545

4646
// Convenience method: call f once deltaSeconds from now
4747
void scheduleFromNow(Function f, int64_t deltaMilliSeconds);

0 commit comments

Comments
 (0)