DSPLLE: in-class initialize variables

This commit is contained in:
Lioncash 2016-10-07 09:07:41 -04:00
parent aaa1da5abc
commit 8b29b09f24
2 changed files with 4 additions and 8 deletions

View File

@ -28,16 +28,12 @@
#include "Core/Movie.h" #include "Core/Movie.h"
#include "Core/NetPlayProto.h" #include "Core/NetPlayProto.h"
DSPLLE::DSPLLE()
: m_hDSPThread(), m_csDSPThreadActive(), m_bDSPThread(false), m_bIsRunning(false),
m_cycle_count(0)
{
}
static Common::Event dspEvent; static Common::Event dspEvent;
static Common::Event ppcEvent; static Common::Event ppcEvent;
static bool requestDisableThread; static bool requestDisableThread;
DSPLLE::DSPLLE() = default;
void DSPLLE::DoState(PointerWrap& p) void DSPLLE::DoState(PointerWrap& p)
{ {
bool is_hle = false; bool is_hle = false;

View File

@ -39,7 +39,7 @@ private:
std::thread m_hDSPThread; std::thread m_hDSPThread;
std::mutex m_csDSPThreadActive; std::mutex m_csDSPThreadActive;
bool m_bDSPThread; bool m_bDSPThread = false;
Common::Flag m_bIsRunning; Common::Flag m_bIsRunning;
std::atomic<u32> m_cycle_count; std::atomic<u32> m_cycle_count{};
}; };