Skip to content
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

Fix NSNotificationCenter dispatch on subthreads. #987

Merged
merged 1 commit into from
Jan 7, 2015

Conversation

morizotter
Copy link
Contributor

In current version, SDWebImageDownloaderOperation's notifications are dispatched on multiple threads. Considering notifications are global and supposed to be used for other purposes, dispatching on main thread seems to be better. UIApplication's setNetworkActivityIndicatorVisible: in SDNetworkActivityIndicator seems to be better to execute on main thread ,too.

@rromanchuk
Copy link
Contributor

+1 this is correct

@rromanchuk
Copy link
Contributor

@bpoplauschi where are you at with all these PRs? Do you need help testing a release branch with a large sample population?

@bpoplauschi
Copy link
Member

@rromanchuk I kept failing to find the proper time to overview those. My plan is to do it by the end of January. Any help is be appreciated.

@bpoplauschi
Copy link
Member

Regarding this PR, indeed it is correct.

bpoplauschi added a commit that referenced this pull request Jan 7, 2015
Fix NSNotificationCenter dispatch on subthreads.
@bpoplauschi bpoplauschi merged commit feca1e8 into SDWebImage:master Jan 7, 2015
@bpoplauschi bpoplauschi added this to the 4.0.0 milestone Jan 7, 2015
@bpoplauschi bpoplauschi added the bug label Jan 7, 2015
@morizotter morizotter deleted the fix-notification-dispatch branch January 31, 2015 13:57
@bpoplauschi bpoplauschi modified the milestones: 3.7.2, 4.0.0 Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants