[sensors](Linux) Fix tsan data race in sensor reader
This CL fixes a tsan data race, which is caused by calling StopFetchingData from different threads. It must not be allowed. Use the same thread by using a PostTask. BUG=673760 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_tsan_rel_ng Review-Url: https://codereview.chromium.org/2569763004 Cr-Commit-Position: refs/heads/master@{#439798}
Showing
Please register or sign in to comment