diff options
| author | 2023-01-14 15:48:01 -0500 | |
|---|---|---|
| committer | 2023-01-14 15:48:01 -0500 | |
| commit | 0953cdd271c0a62a9b336e66fa2d5583a633746f (patch) | |
| tree | b6f1f24811fd7be52276794b9fd45cc1f01f7cf4 /src/core/core_timing.h | |
| parent | Merge pull request #9605 from german77/mouse_mapping (diff) | |
| download | yuzu-0953cdd271c0a62a9b336e66fa2d5583a633746f.tar.gz yuzu-0953cdd271c0a62a9b336e66fa2d5583a633746f.tar.xz yuzu-0953cdd271c0a62a9b336e66fa2d5583a633746f.zip | |
timing: wait for completion on unregister
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index b5925193c..da366637b 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -98,10 +98,13 @@ public: | |||
| 98 | const std::shared_ptr<EventType>& event_type, | 98 | const std::shared_ptr<EventType>& event_type, |
| 99 | std::uintptr_t user_data = 0, bool absolute_time = false); | 99 | std::uintptr_t user_data = 0, bool absolute_time = false); |
| 100 | 100 | ||
| 101 | void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data); | 101 | void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data, |
| 102 | bool wait = true); | ||
| 102 | 103 | ||
| 103 | /// We only permit one event of each type in the queue at a time. | 104 | void UnscheduleEventWithoutWait(const std::shared_ptr<EventType>& event_type, |
| 104 | void RemoveEvent(const std::shared_ptr<EventType>& event_type); | 105 | std::uintptr_t user_data) { |
| 106 | UnscheduleEvent(event_type, user_data, false); | ||
| 107 | } | ||
| 105 | 108 | ||
| 106 | void AddTicks(u64 ticks_to_add); | 109 | void AddTicks(u64 ticks_to_add); |
| 107 | 110 | ||