summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2023-01-19 00:13:38 +0100
committerGitHub <noreply@github.com>2023-01-19 00:13:38 +0100
commit413df0811d589fb147f24e29caab5285d62e1a6a (patch)
treefcd0e4cb6696dfc1964d3169a7db1a63348efdbf /src/core/core_timing.h
parentMerge pull request #9615 from merryhime/upsample-ob1 (diff)
parenttiming: wait for completion on unregister (diff)
downloadyuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar.gz
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar.bz2
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar.lz
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar.xz
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.tar.zst
yuzu-413df0811d589fb147f24e29caab5285d62e1a6a.zip
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r--src/core/core_timing.h9
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:
const std::shared_ptr<EventType>& event_type,
std::uintptr_t user_data = 0, bool absolute_time = false);
- void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data);
+ void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data,
+ bool wait = true);
- /// We only permit one event of each type in the queue at a time.
- void RemoveEvent(const std::shared_ptr<EventType>& event_type);
+ void UnscheduleEventWithoutWait(const std::shared_ptr<EventType>& event_type,
+ std::uintptr_t user_data) {
+ UnscheduleEvent(event_type, user_data, false);
+ }
void AddTicks(u64 ticks_to_add);