Fix Windows support again: std::thread can't take a member pointer with StdThread.h from Common
This commit is contained in:
parent
db46ccd175
commit
61c1fab2c6
|
@ -28,7 +28,7 @@
|
||||||
CUCode_NewAX::CUCode_NewAX(DSPHLE* dsp_hle, u32 crc)
|
CUCode_NewAX::CUCode_NewAX(DSPHLE* dsp_hle, u32 crc)
|
||||||
: IUCode(dsp_hle, crc)
|
: IUCode(dsp_hle, crc)
|
||||||
, m_cmdlist_size(0)
|
, m_cmdlist_size(0)
|
||||||
, m_axthread(&CUCode_NewAX::AXThread, this)
|
, m_axthread(&SpawnAXThread, this)
|
||||||
{
|
{
|
||||||
m_rMailHandler.PushMail(DSP_INIT);
|
m_rMailHandler.PushMail(DSP_INIT);
|
||||||
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
|
||||||
|
@ -43,6 +43,11 @@ CUCode_NewAX::~CUCode_NewAX()
|
||||||
m_rMailHandler.Clear();
|
m_rMailHandler.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CUCode_NewAX::SpawnAXThread(CUCode_NewAX* self)
|
||||||
|
{
|
||||||
|
self->AXThread();
|
||||||
|
}
|
||||||
|
|
||||||
void CUCode_NewAX::AXThread()
|
void CUCode_NewAX::AXThread()
|
||||||
{
|
{
|
||||||
while (true)
|
while (true)
|
||||||
|
|
|
@ -32,6 +32,10 @@ public:
|
||||||
void Update(int cycles);
|
void Update(int cycles);
|
||||||
void DoState(PointerWrap& p);
|
void DoState(PointerWrap& p);
|
||||||
|
|
||||||
|
// Needed because StdThread.h std::thread implem does not support member
|
||||||
|
// pointers.
|
||||||
|
static void SpawnAXThread(CUCode_NewAX* self);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum MailType
|
enum MailType
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue