Core: Convert volatile bools to atomics

Converts over bools that are typically used as loop checks into atomics.
This commit is contained in:
Lioncash
2015-05-21 19:52:26 -04:00
parent 01ec940650
commit de2e84344d
6 changed files with 63 additions and 64 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <atomic>
#include <map>
#include <mutex>
#include <queue>
@ -108,9 +109,9 @@ protected:
ENetPeer* m_server;
std::thread m_thread;
std::string m_selected_game;
volatile bool m_is_running;
volatile bool m_do_loop;
std::string m_selected_game;
std::atomic<bool> m_is_running;
std::atomic<bool> m_do_loop;
unsigned int m_target_buffer_size;