Clean up usage of ScheduleEvent_Threadsafe.
This commit is contained in:
1 parent
a277172b49
commit
47be9d8e6b
6 files changed
+20
-8
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user