Add Support for the Run Loop Queue to be Weak (#3214)

* Add support for the run loop queue to be weak

* Go back to using a deque for itemsToProcess

* Update comment
This commit is contained in:
Adlai Holler
2017-03-23 15:43:31 -07:00
committed by GitHub
parent 740fc3f4c1
commit d3d0f7be09
4 changed files with 38 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ extern void ASPerformMainThreadDeallocation(_Nullable id object)
static ASRunLoopQueue *queue;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
queue = [[ASRunLoopQueue alloc] initWithRunLoop:CFRunLoopGetMain() andHandler:nil];
queue = [[ASRunLoopQueue alloc] initWithRunLoop:CFRunLoopGetMain() retainObjects:YES handler:nil];
queue.batchSize = 10;
});
if (object != nil) {