-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASCATransactionQueue interface trashing improvements #1216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff looks good but title is misleading – this affects the ASCATransactionQueue, not the dealloc queue!
Diff looks good, but can you give a description on how this improves interface trashing? |
551dca3
to
1865cbd
Compare
1865cbd
to
6ae7fcb
Compare
@@ -377,17 +372,13 @@ - (instancetype)init | |||
// __unsafe_unretained allows us to avoid flagging the memory cycle detector. | |||
__unsafe_unretained __typeof__(self) weakSelf = self; | |||
void (^handlerBlock) (CFRunLoopObserverRef observer, CFRunLoopActivity activity) = ^(CFRunLoopObserverRef observer, CFRunLoopActivity activity) { | |||
while (weakSelf->_internalQueue.count > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indentation seems wrong here?
Say before the change we are processing nodes 1, 2, 3 in queue, but the process of node 1 may do something that changes node 3's state. The while loop will handle that case, otherwise node 3's change by node 1 will be pushed to next loop. |
No description provided.