summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-02-13 16:40:07 +0100
committerLioncash <mathew1800@gmail.com>2015-02-13 16:48:32 +0100
commit0c6434c379bd13553e2504d269965c764e2a0441 (patch)
tree9fa96cdc2bc180ac4c5a2c33158ae7cc60f2a308 /src/core/core_timing.cpp
parentMerge pull request #571 from lioncash/cleanup (diff)
downloadyuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar.gz
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar.bz2
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar.lz
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar.xz
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.tar.zst
yuzu-0c6434c379bd13553e2504d269965c764e2a0441.zip
Diffstat (limited to 'src/core/core_timing.cpp')
-rw-r--r--src/core/core_timing.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index d96d3fe16..12ea3ff19 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -69,7 +69,7 @@ using AdvanceCallback = void(int cycles_executed);
static AdvanceCallback* advance_callback = nullptr;
static std::vector<MHzChangeCallback> mhz_change_callbacks;
-void FireMhzChange() {
+static void FireMhzChange() {
for (auto callback : mhz_change_callbacks)
callback();
}
@@ -97,7 +97,7 @@ u64 GetGlobalTimeUs() {
return last_global_time_us + us_since_last;
}
-Event* GetNewEvent() {
+static Event* GetNewEvent() {
if (!event_pool)
return new Event;
@@ -106,7 +106,7 @@ Event* GetNewEvent() {
return event;
}
-Event* GetNewTsEvent() {
+static Event* GetNewTsEvent() {
allocated_ts_events++;
if (!event_ts_pool)
@@ -117,12 +117,12 @@ Event* GetNewTsEvent() {
return event;
}
-void FreeEvent(Event* event) {
+static void FreeEvent(Event* event) {
event->next = event_pool;
event_pool = event;
}
-void FreeTsEvent(Event* event) {
+static void FreeTsEvent(Event* event) {
event->next = event_ts_pool;
event_ts_pool = event;
allocated_ts_events--;
@@ -133,7 +133,7 @@ int RegisterEvent(const char* name, TimedCallback callback) {
return (int)event_types.size() - 1;
}
-void AntiCrashCallback(u64 userdata, int cycles_late) {
+static void AntiCrashCallback(u64 userdata, int cycles_late) {
LOG_CRITICAL(Core_Timing, "Savestate broken: an unregistered event was called.");
Core::Halt("invalid timing events");
}
@@ -228,7 +228,7 @@ void ClearPendingEvents() {
}
}
-void AddEventToQueue(Event* new_event) {
+static void AddEventToQueue(Event* new_event) {
Event* prev_event = nullptr;
Event** next_event = &first;
for (;;) {