File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class FSEventsWatcher {
132132    DISALLOW_COPY_AND_ASSIGN (Node);
133133  };
134134
135-   FSEventsWatcher () : run_loop_(0 ) { Start (); }
135+   FSEventsWatcher () : monitor_(),  run_loop_(nullptr ), owner_( ) { Start (); }
136136
137137  void  Start () {
138138    Thread::Start (" dart:io FileWatcher"  , Run, reinterpret_cast <uword>(this ));
@@ -147,11 +147,12 @@ class FSEventsWatcher {
147147    FSEventsWatcher* watcher = reinterpret_cast <FSEventsWatcher*>(arg);
148148    //  Only checked in debug mode.
149149    watcher->owner_ .Acquire ();
150-     watcher-> run_loop_  = CFRunLoopGetCurrent ();
151-     CFRetain (watcher-> run_loop_ );
150+     CFRunLoopRef loop  = CFRunLoopGetCurrent ();
151+     CFRetain (loop );
152152
153153    //  Notify, as the run-loop is set.
154154    watcher->monitor ().Enter ();
155+     watcher->run_loop_  = loop;
155156    watcher->monitor ().Notify ();
156157    watcher->monitor ().Exit ();
157158
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments