diff options
Diffstat (limited to 'src/core/core_timing.cpp')
| -rw-r--r-- | src/core/core_timing.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 3b7b0aa45..d08c007bb 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp | |||
| @@ -143,7 +143,8 @@ void CoreTiming::ScheduleLoopingEvent(std::chrono::nanoseconds start_time, | |||
| 143 | event.Set(); | 143 | event.Set(); |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type, bool wait) { | 146 | void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type, |
| 147 | UnscheduleEventType type) { | ||
| 147 | { | 148 | { |
| 148 | std::scoped_lock lk{basic_lock}; | 149 | std::scoped_lock lk{basic_lock}; |
| 149 | 150 | ||
| @@ -161,7 +162,7 @@ void CoreTiming::UnscheduleEvent(const std::shared_ptr<EventType>& event_type, b | |||
| 161 | } | 162 | } |
| 162 | 163 | ||
| 163 | // Force any in-progress events to finish | 164 | // Force any in-progress events to finish |
| 164 | if (wait) { | 165 | if (type == UnscheduleEventType::Wait) { |
| 165 | std::scoped_lock lk{advance_lock}; | 166 | std::scoped_lock lk{advance_lock}; |
| 166 | } | 167 | } |
| 167 | } | 168 | } |