From a431c85b6b068c248d55317ac1fa8a5ce0d6a527 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 5 Aug 2018 21:27:11 -0400 Subject: [PATCH] core_timing: Convert typedef into a type alias Makes the alias a little more readable from left-to-right. --- src/core/core_timing.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/core_timing.h b/src/core/core_timing.h index ca663a1ede..060d263e94 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -121,6 +121,10 @@ inline u64 cyclesToMs(s64 cycles) { namespace CoreTiming { +struct EventType; + +using TimedCallback = std::function; + /** * CoreTiming begins at the boundary of timing slice -1. An initial call to Advance() is * required to end slice -1 and start slice 0 before the first cycle of code is executed. @@ -128,8 +132,6 @@ namespace CoreTiming { void Init(); void Shutdown(); -typedef std::function TimedCallback; - /** * This should only be called from the emu thread, if you are calling it any other thread, you are * doing something evil @@ -138,8 +140,6 @@ u64 GetTicks(); u64 GetIdleTicks(); void AddTicks(u64 ticks); -struct EventType; - /** * Returns the event_type identifier. if name is not unique, it will assert. */