summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-23 20:06:41 +0100
committerLiam <byteslice@airmail.cc>2023-12-23 21:36:46 +0100
commit575db0417278eef0c854900885734fd068b97430 (patch)
tree6663a52529852ca1279b7461807e3beb8ed312af /src/core/core_timing.h
parentcore_timing: remove user data value (diff)
downloadyuzu-575db0417278eef0c854900885734fd068b97430.tar
yuzu-575db0417278eef0c854900885734fd068b97430.tar.gz
yuzu-575db0417278eef0c854900885734fd068b97430.tar.bz2
yuzu-575db0417278eef0c854900885734fd068b97430.tar.lz
yuzu-575db0417278eef0c854900885734fd068b97430.tar.xz
yuzu-575db0417278eef0c854900885734fd068b97430.tar.zst
yuzu-575db0417278eef0c854900885734fd068b97430.zip
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r--src/core/core_timing.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index d86337cdc..d8cd599ee 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -35,6 +35,11 @@ struct EventType {
const std::string name;
};
+enum class UnscheduleEventType {
+ Wait,
+ NoWait,
+};
+
/**
* This is a system to schedule events into the emulated machine's future. Time is measured
* in main CPU clock cycles.
@@ -98,11 +103,8 @@ public:
const std::shared_ptr<EventType>& event_type,
bool absolute_time = false);
- void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, bool wait = true);
-
- void UnscheduleEventWithoutWait(const std::shared_ptr<EventType>& event_type) {
- UnscheduleEvent(event_type, false);
- }
+ void UnscheduleEvent(const std::shared_ptr<EventType>& event_type,
+ UnscheduleEventType type = UnscheduleEventType::Wait);
void AddTicks(u64 ticks_to_add);