this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

FSEvents: small stability fix

+4 -3
+4 -3
src/frameworks/CoreServices/src/FSEvents/FSEventsImpl.m
··· 76 76 77 77 static dispatch_once_t once; 78 78 dispatch_once(&once, ^{ 79 - g_fsEventsQueue = dispatch_queue_create("FSEvents queue", NULL); 79 + g_fsEventsQueue = dispatch_queue_create("FSEvents queue", DISPATCH_QUEUE_SERIAL); 80 80 }); 81 81 82 82 _source = dispatch_source_create(DISPATCH_SOURCE_TYPE_READ, _fd, 0, g_fsEventsQueue); ··· 293 293 char** cpathArray = NULL; 294 294 NSArray<NSDictionary*>* dicts = NULL; 295 295 296 - dispatch_suspend(_source); // prevent races 297 - 296 + dispatch_suspend(_source); 297 + dispatch_sync(g_fsEventsQueue, ^{}); 298 + 298 299 if (!(_flags & kFSEventStreamCreateFlagUseCFTypes)) 299 300 { 300 301 @autoreleasepool