Fix Windows support again: std::thread can't take a member pointer with StdThread.h from Common

This commit is contained in:
Pierre Bourdon 2012-11-14 12:13:19 +01:00
parent db46ccd175
commit 61c1fab2c6
2 changed files with 10 additions and 1 deletions

View File

@ -28,7 +28,7 @@
CUCode_NewAX::CUCode_NewAX(DSPHLE* dsp_hle, u32 crc)
: IUCode(dsp_hle, crc)
, m_cmdlist_size(0)
, m_axthread(&CUCode_NewAX::AXThread, this)
, m_axthread(&SpawnAXThread, this)
{
m_rMailHandler.PushMail(DSP_INIT);
DSP::GenerateDSPInterruptFromDSPEmu(DSP::INT_DSP);
@ -43,6 +43,11 @@ CUCode_NewAX::~CUCode_NewAX()
m_rMailHandler.Clear();
}
void CUCode_NewAX::SpawnAXThread(CUCode_NewAX* self)
{
self->AXThread();
}
void CUCode_NewAX::AXThread()
{
while (true)

View File

@ -32,6 +32,10 @@ public:
void Update(int cycles);
void DoState(PointerWrap& p);
// Needed because StdThread.h std::thread implem does not support member
// pointers.
static void SpawnAXThread(CUCode_NewAX* self);
private:
enum MailType
{