aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/core_timing.cpp
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-04-27 22:46:19 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-05-01 18:27:05 -0400
commit5a855bdb2f263c143c54c0f37609aaa22e61c281 (patch)
tree2fe59e088641c1fefabfc840bc3dd69da622e0af /src/core/core_timing.cpp
parentd3c2f9a4a4c48e4571cd693a0c1801b665819cdf (diff)
CoreTiming: Initialize static variables at bootup.
Diffstat (limited to 'src/core/core_timing.cpp')
-rw-r--r--src/core/core_timing.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp
index 6f716b1c..f70c84c3 100644
--- a/src/core/core_timing.cpp
+++ b/src/core/core_timing.cpp
@@ -160,6 +160,16 @@ void Init() {
last_global_time_us = 0;
has_ts_events = 0;
mhz_change_callbacks.clear();
+
+ first = nullptr;
+ ts_first = nullptr;
+ ts_last = nullptr;
+
+ event_pool = nullptr;
+ event_ts_pool = nullptr;
+ allocated_ts_events = 0;
+
+ advance_callback = nullptr;
}
void Shutdown() {