diff options
| author | bunnei <bunneidev@gmail.com> | 2018-08-05 23:37:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-05 23:37:53 -0400 |
| commit | 0b80bbeb95cc0015e35a4d43beb97cf98c0cf8c5 (patch) | |
| tree | f6631ea4c4cb214db72b6661a20db456e784d054 /src/core/core_timing.h | |
| parent | f1b93d63d14236f0c17403df3bda830dc5fcd3a4 (diff) | |
| parent | 6edd8281010ba6d4ce76c1241e2cea6d571bc0f2 (diff) | |
Merge pull request #932 from lioncash/func
core_timing: Use transparent functors where applicable
Diffstat (limited to 'src/core/core_timing.h')
| -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 @@ namespace CoreTiming { +struct EventType; + +using TimedCallback = std::function<void(u64 userdata, int cycles_late)>; + /** * 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. @@ -30,8 +34,6 @@ namespace CoreTiming { void Init(); void Shutdown(); -typedef std::function<void(u64 userdata, int cycles_late)> TimedCallback; - /** * This should only be called from the emu thread, if you are calling it any other thread, you are * doing something evil @@ -40,8 +42,6 @@ u64 GetTicks(); u64 GetIdleTicks(); void AddTicks(u64 ticks); -struct EventType; - /** * Returns the event_type identifier. if name is not unique, it will assert. */ |
