File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -297,14 +297,13 @@ void Scheduler::next() { // NOLINT
297
297
// point, then wait until the next tag or until a new event is
298
298
// inserted asynchronously into the queue
299
299
if (physical_time < t_next.time_point ()) {
300
- auto status = cv_schedule_.wait_until (lock, t_next.time_point ());
301
- // Start over if the event queue was modified
302
- if (status == std::cv_status::no_timeout ) {
300
+ cv_schedule_.wait_until (lock, t_next.time_point ());
301
+ // Start over if an earlier event was inserted into the event queue by a physical action
302
+ if (t_next != event_queue_. begin ()-> first ) {
303
303
continue ;
304
304
}
305
305
// update physical time and continue otherwise
306
306
physical_time = t_next.time_point ();
307
- reactor_assert (t_next == event_queue_.begin ()->first );
308
307
}
309
308
}
310
309
You can’t perform that action at this time.
0 commit comments