mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
Use Common::Flag and Common::Event when possible
Replaces old and simple usages of std::atomic<bool> with Common::Flag (which was introduced after the initial usage), so it's clear that the variable is a flag and because Common::Flag is well tested. This also replaces the ready logic in WiimoteReal with Common::Event since it was basically just unnecessarily reimplementing Common::Event.
This commit is contained in:
parent
c6a0e543a5
commit
dca22e08eb
19 changed files with 94 additions and 132 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
#include <array>
|
||||
#include <atomic>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
@ -124,8 +123,8 @@ protected:
|
|||
std::thread m_thread;
|
||||
|
||||
std::string m_selected_game;
|
||||
std::atomic<bool> m_is_running{false};
|
||||
std::atomic<bool> m_do_loop{true};
|
||||
Common::Flag m_is_running{false};
|
||||
Common::Flag m_do_loop{true};
|
||||
|
||||
unsigned int m_target_buffer_size = 20;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue