Skip to content

Various GCD related fixes for SDImageCache #676

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

Merged
merged 5 commits into from
Mar 24, 2014

Conversation

matej
Copy link
Contributor

@matej matej commented Mar 24, 2014

This hopefully addresses the issues outlined in #625 and #507, as well as a background task-related issue. The cache has also ben slightly modified to make more use of the private fileManager instance.

matej added 5 commits March 24, 2014 20:14
- more appropriate than dispatch_main_sync_safe, since we’ll always be on the ioQueue when calling
- prevents deadlock situation described in SDWebImage#625
 - the background task had no effect, since cleanDisk returns immediately and thereby cancels the background task
 - adding cleanDiskWithCompletionBlock: and modifying backgroundCleanDisk to use this method resolves the issue
rs pushed a commit that referenced this pull request Mar 24, 2014
Various GCD related fixes for SDImageCache
@rs rs merged commit 710908e into SDWebImage:master Mar 24, 2014
@matej matej deleted the cache-gcd-fixes branch March 24, 2014 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants