mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Forgot about some Linux files using Common::Thread
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6934 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -33,15 +33,14 @@ AlsaSound::~AlsaSound()
|
||||
delete [] mix_buffer;
|
||||
}
|
||||
|
||||
static void *ThreadTrampoline(void *args)
|
||||
static void ThreadTrampoline(AlsaSound* args)
|
||||
{
|
||||
reinterpret_cast<AlsaSound *>(args)->SoundLoop();
|
||||
return NULL;
|
||||
args->SoundLoop();
|
||||
}
|
||||
|
||||
bool AlsaSound::Start()
|
||||
{
|
||||
thread = new Common::Thread(&ThreadTrampoline, this);
|
||||
thread = std::thread(ThreadTrampoline, this);
|
||||
thread_data = 0;
|
||||
return true;
|
||||
}
|
||||
@ -49,8 +48,7 @@ bool AlsaSound::Start()
|
||||
void AlsaSound::Stop()
|
||||
{
|
||||
thread_data = 1;
|
||||
delete thread;
|
||||
thread = NULL;
|
||||
thread.join();
|
||||
}
|
||||
|
||||
void AlsaSound::Update()
|
||||
|
Reference in New Issue
Block a user