Convert the Linux Inotify File Path Watcher to use PlatformThread
The previous implementation created a regular MessageLoop based thread and posted a single perpetually running task to it, effectively blocking this MessageLoop. With MessageLoop redirection to the Task Scheduler, a flush would result in a hang as this task would never return. This change moves that single task into its own ThreadMain and changes the use of Thread to a non-joinable PlatformThread. BUG=810804 Change-Id: I364acee59f9dd5d80a9c57ebc9d8158ee5faa9c4 Reviewed-on: https://chromium-review.googlesource.com/911902 Commit-Queue: Robert Liao <robliao@chromium.org> Reviewed-by:Gabriel Charette <gab@chromium.org> Cr-Commit-Position: refs/heads/master@{#536652}
Showing
Please register or sign in to comment