Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use RFGetPowerState & RFSetPowerState
This will help fix potential race conditions. I was not able to generate a problem using ThreadSanitizer but that is not a proof that the code is correct https://clang.llvm.org/docs/ThreadSanitizer.html Thanks to andrei-datcu for the patch "No data races in EHStatusHandlerThread LudovicRousseau#112" LudovicRousseau#112
- Loading branch information