summaryrefslogtreecommitdiff
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2015-01-20 13:47:53 -0500
committerGravatar Lioncash2015-01-20 13:49:10 -0500
commitbfef0aa07e52e2b91ece7ab556c2cc9ef0523267 (patch)
tree484ce5a7c67330a048dbe34247404086e6c4c368 /src/core/core_timing.cpp
parentMerge pull request #492 from archshift/apt (diff)
downloadyuzu-bfef0aa07e52e2b91ece7ab556c2cc9ef0523267.tar.gz
yuzu-bfef0aa07e52e2b91ece7ab556c2cc9ef0523267.tar.xz
yuzu-bfef0aa07e52e2b91ece7ab556c2cc9ef0523267.zip
core_timing: Mark several variables as static
These are only used in this translation unit.
Diffstat (limited to 'src/core/core_timing.cpp')
-rw-r--r--src/core/core_timing.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index ec9d52a08..3aebd7e9d 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -33,7 +33,7 @@ struct EventType
33 const char* name; 33 const char* name;
34}; 34};
35 35
36std::vector<EventType> event_types; 36static std::vector<EventType> event_types;
37 37
38struct BaseEvent 38struct BaseEvent
39{ 39{
@@ -44,30 +44,30 @@ struct BaseEvent
44 44
45typedef LinkedListItem<BaseEvent> Event; 45typedef LinkedListItem<BaseEvent> Event;
46 46
47Event* first; 47static Event* first;
48Event* ts_first; 48static Event* ts_first;
49Event* ts_last; 49static Event* ts_last;
50 50
51// event pools 51// event pools
52Event* event_pool = 0; 52static Event* event_pool = nullptr;
53Event* event_ts_pool = 0; 53static Event* event_ts_pool = nullptr;
54int allocated_ts_events = 0; 54static int allocated_ts_events = 0;
55// Optimization to skip MoveEvents when possible. 55// Optimization to skip MoveEvents when possible.
56std::atomic<bool> has_ts_events(false); 56static std::atomic<bool> has_ts_events(false);
57 57
58int g_slice_length; 58int g_slice_length;
59 59
60s64 global_timer; 60static s64 global_timer;
61s64 idled_cycles; 61static s64 idled_cycles;
62s64 last_global_time_ticks; 62static s64 last_global_time_ticks;
63s64 last_global_time_us; 63static s64 last_global_time_us;
64 64
65static std::recursive_mutex external_event_section; 65static std::recursive_mutex external_event_section;
66 66
67// Warning: not included in save state. 67// Warning: not included in save state.
68using AdvanceCallback = void(int cycles_executed); 68using AdvanceCallback = void(int cycles_executed);
69AdvanceCallback* advance_callback = nullptr; 69static AdvanceCallback* advance_callback = nullptr;
70std::vector<MHzChangeCallback> mhz_change_callbacks; 70static std::vector<MHzChangeCallback> mhz_change_callbacks;
71 71
72void FireMhzChange() { 72void FireMhzChange() {
73 for (auto callback : mhz_change_callbacks) 73 for (auto callback : mhz_change_callbacks)