| 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 afc112719b2f86027bd067d1156a5fe576ba953e..d06e2d79491c53c5c5b209e708cfe2c7efde5ece 100644
|
| --- a/runtime/bin/file_system_watcher_macos.cc
|
| +++ b/runtime/bin/file_system_watcher_macos.cc
|
| @@ -98,7 +98,7 @@ class FSEventsWatcher {
|
| static void StartCallback(CFRunLoopTimerRef timer, void* info) {
|
| Node* node = reinterpret_cast<Node*>(info);
|
| ASSERT(Thread::Compare(node->watcher_->threadId_,
|
| - Thread::GetCurrentThreadId());
|
| + Thread::GetCurrentThreadId()));
|
| FSEventStreamContext context;
|
| memset(&context, 0, sizeof(context));
|
| context.info = reinterpret_cast<void*>(node);
|
| @@ -150,7 +150,7 @@ class FSEventsWatcher {
|
| static void StopCallback(CFRunLoopTimerRef timer, void* info) {
|
| Node* node = reinterpret_cast<Node*>(info);
|
| ASSERT(Thread::Compare(node->watcher_->threadId_,
|
| - Thread::GetCurrentThreadId());
|
| + Thread::GetCurrentThreadId()));
|
| FSEventStreamStop(node->ref_);
|
| FSEventStreamInvalidate(node->ref_);
|
| FSEventStreamRelease(node->ref_);
|
| @@ -243,7 +243,7 @@ class FSEventsWatcher {
|
| static void StopCallback(CFRunLoopTimerRef timer, void* info) {
|
| FSEventsWatcher* watcher = reinterpret_cast<FSEventsWatcher*>(info);
|
| ASSERT(Thread::Compare(node->watcher_->threadId_,
|
| - Thread::GetCurrentThreadId());
|
| + Thread::GetCurrentThreadId()));
|
| CFRunLoopStop(watcher->run_loop_);
|
| }
|
|
|
| @@ -280,7 +280,7 @@ class FSEventsWatcher {
|
| const FSEventStreamEventId event_ids[]) {
|
| Node* node = reinterpret_cast<Node*>(client);
|
| ASSERT(Thread::Compare(node->watcher_->threadId_,
|
| - Thread::GetCurrentThreadId());
|
| + Thread::GetCurrentThreadId()));
|
| // `ready` is set on same thread as this callback is invoked, so we don't
|
| // need to lock here.
|
| if (!node->ready()) return;
|
|
|