Avoid races

This commit is contained in:
Lior Halphon 2020-05-01 18:28:06 +03:00
parent 2854578527
commit 7e124e169e

View File

@ -703,6 +703,7 @@ typedef struct __attribute__((packed)) {
_forceStopPWMThread = true; _forceStopPWMThread = true;
} }
[_rumblePWMThreadLock unlock]; [_rumblePWMThreadLock unlock];
while (_rumblePWMThreadRunning);
} }
+ (void)controllerAdded:(IOHIDDeviceRef) device + (void)controllerAdded:(IOHIDDeviceRef) device