summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-28 04:29:22 +0200
committerGitHub <noreply@github.com>2020-07-28 04:29:22 +0200
commit05781ce8c4dd4d4150185effac56ef9a71ae2705 (patch)
tree12d41a29b43577b95b158bc033aadc3957bde3d7 /src/core/core_timing.h
parentMerge pull request #4420 from lat9nq/fix-themed-label-bg (diff)
parentcore_timing: Make use of uintptr_t to represent user_data (diff)
downloadyuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar.gz
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar.bz2
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar.lz
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar.xz
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.tar.zst
yuzu-05781ce8c4dd4d4150185effac56ef9a71ae2705.zip
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r--src/core/core_timing.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index 120c74e46..b0b6036e4 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -22,7 +22,8 @@
namespace Core::Timing {
/// A callback that may be scheduled for a particular core timing event.
-using TimedCallback = std::function<void(u64 userdata, std::chrono::nanoseconds ns_late)>;
+using TimedCallback =
+ std::function<void(std::uintptr_t user_data, std::chrono::nanoseconds ns_late)>;
/// Contains the characteristics of a particular event.
struct EventType {
@@ -94,9 +95,9 @@ public:
/// Schedules an event in core timing
void ScheduleEvent(std::chrono::nanoseconds ns_into_future,
- const std::shared_ptr<EventType>& event_type, u64 userdata = 0);
+ const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data = 0);
- void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, u64 userdata);
+ void UnscheduleEvent(const std::shared_ptr<EventType>& event_type, std::uintptr_t user_data);
/// We only permit one event of each type in the queue at a time.
void RemoveEvent(const std::shared_ptr<EventType>& event_type);