| 73 | } |
| 74 | |
| 75 | void CScheduler::schedule(CScheduler::Function f, std::chrono::system_clock::time_point t) |
| 76 | { |
| 77 | { |
| 78 | LOCK(newTaskMutex); |
| 79 | taskQueue.insert(std::make_pair(t, f)); |
| 80 | } |
| 81 | newTaskScheduled.notify_one(); |
| 82 | } |
| 83 | |
| 84 | void CScheduler::MockForward(std::chrono::seconds delta_seconds) |
| 85 | { |