| Index: runtime/bin/file_system_watcher_macos.cc
|
| diff --git a/runtime/bin/file_system_watcher_macos.cc b/runtime/bin/file_system_watcher_macos.cc
|
| index b694bfddfd174478dc3ae1f024cd434c65d04e57..de0be2eb9c552fa32aab3fbf8abe894895061709 100644
|
| --- a/runtime/bin/file_system_watcher_macos.cc
|
| +++ b/runtime/bin/file_system_watcher_macos.cc
|
| @@ -114,7 +114,9 @@ class FSEventsWatcher {
|
| watcher->run_loop_ = CFRunLoopGetCurrent();
|
|
|
| // Notify, as the run-loop is set.
|
| + watcher_monitor->Enter();
|
| watcher_monitor->Notify();
|
| + watcher_monitor->Exit();
|
|
|
| CFRunLoopTimerRef timer = CFRunLoopTimerCreate(
|
| NULL,
|
| @@ -132,8 +134,8 @@ class FSEventsWatcher {
|
|
|
| static void Increment() {
|
| if (watcher == NULL) {
|
| - watcher = new FSEventsWatcher();
|
| watcher_monitor->Enter();
|
| + watcher = new FSEventsWatcher();
|
| watcher_monitor->Wait(Monitor::kNoTimeout);
|
| watcher_monitor->Exit();
|
| }
|
|
|