diff options
| author | 2018-08-05 21:27:11 -0400 | |
|---|---|---|
| committer | 2018-08-05 21:27:14 -0400 | |
| commit | 6edd8281010ba6d4ce76c1241e2cea6d571bc0f2 (patch) | |
| tree | f3bd5b5f7188c737cae1b6ea2f5f962b1b6ef154 | |
| parent | core_timing: Use transparent functors where applicable (diff) | |
| download | yuzu-6edd8281010ba6d4ce76c1241e2cea6d571bc0f2.tar.gz yuzu-6edd8281010ba6d4ce76c1241e2cea6d571bc0f2.tar.xz yuzu-6edd8281010ba6d4ce76c1241e2cea6d571bc0f2.zip | |
core_timing: Convert typedef into a type alias
Makes the alias a little more readable from left-to-right.
| -rw-r--r-- | src/core/core_timing.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h index 7fe6380ad..5bbde47f4 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h | |||
| @@ -23,6 +23,10 @@ | |||
| 23 | 23 | ||
| 24 | namespace CoreTiming { | 24 | namespace CoreTiming { |
| 25 | 25 | ||
| 26 | struct EventType; | ||
| 27 | |||
| 28 | using TimedCallback = std::function<void(u64 userdata, int cycles_late)>; | ||
| 29 | |||
| 26 | /** | 30 | /** |
| 27 | * CoreTiming begins at the boundary of timing slice -1. An initial call to Advance() is | 31 | * CoreTiming begins at the boundary of timing slice -1. An initial call to Advance() is |
| 28 | * required to end slice -1 and start slice 0 before the first cycle of code is executed. | 32 | * required to end slice -1 and start slice 0 before the first cycle of code is executed. |
| @@ -30,8 +34,6 @@ namespace CoreTiming { | |||
| 30 | void Init(); | 34 | void Init(); |
| 31 | void Shutdown(); | 35 | void Shutdown(); |
| 32 | 36 | ||
| 33 | typedef std::function<void(u64 userdata, int cycles_late)> TimedCallback; | ||
| 34 | |||
| 35 | /** | 37 | /** |
| 36 | * This should only be called from the emu thread, if you are calling it any other thread, you are | 38 | * This should only be called from the emu thread, if you are calling it any other thread, you are |
| 37 | * doing something evil | 39 | * doing something evil |
| @@ -40,8 +42,6 @@ u64 GetTicks(); | |||
| 40 | u64 GetIdleTicks(); | 42 | u64 GetIdleTicks(); |
| 41 | void AddTicks(u64 ticks); | 43 | void AddTicks(u64 ticks); |
| 42 | 44 | ||
| 43 | struct EventType; | ||
| 44 | |||
| 45 | /** | 45 | /** |
| 46 | * Returns the event_type identifier. if name is not unique, it will assert. | 46 | * Returns the event_type identifier. if name is not unique, it will assert. |
| 47 | */ | 47 | */ |