General: Fix Stop function
This commit is contained in:
parent
f370de84b1
commit
e6f8bde74b
4 changed files with 25 additions and 5 deletions
|
@ -61,6 +61,7 @@ void CoreTiming::Initialize(std::function<void(void)>&& on_thread_init_) {
|
|||
void CoreTiming::Shutdown() {
|
||||
paused = true;
|
||||
shutting_down = true;
|
||||
pause_event.Set();
|
||||
event.Set();
|
||||
timer_thread->join();
|
||||
ClearPendingEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue