Avoid races

This commit is contained in:
Lior Halphon 2020-05-01 18:28:06 +03:00
parent 2854578527
commit 7e124e169e
1 changed files with 1 additions and 0 deletions

View File

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