Clean up usage of ScheduleEvent_Threadsafe.

This commit is contained in:
magumagu committed 2015-01-30 14:48:23 -08:00
1 parent a277172b49
commit 47be9d8e6b
6 files changed
+20 -8

No files matched your search

+1
View File
@@ -492,6 +492,7 @@ void ChangeDevice(SIDevices device, int channel)
{
// Called from GUI, so we need to make it thread safe.
// Let the hardware see no device for .5b cycles
// TODO: Calling GetDeviceType here isn't threadsafe.
if (GetDeviceType(channel) != device)
{
CoreTiming::ScheduleEvent_Threadsafe(0, changeDevice, ((u64)channel << 32) | SIDEVICE_NONE);