Add default arg to CScheduler to schedule() a callback now

This commit is contained in:
Matt Corallo committed 2017-07-07 11:33:18 -04:00
1 parent cda1429d5b
commit 2fbf2dbe15
1 file changed
+1 -1
+1 -1
View File
@@ -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);