Committed by
GitHub
Fix function storeImageDataToDisk description
New Pull Request Checklist I have read and understood the CONTRIBUTING guide I have read the Documentation I have searched for a similar pull request in the project and found none I have updated this branch with the latest master to avoid conflicts (via merge from master or rebase) I have added the required tests to prove the fix/feature I am adding I have updated the documentation (if necessary) I have run the tests and they pass I have run the lint and it passes (pod lib lint) This merge request fixes / reffers to the following issues: ... Pull Request Description ####Description There are some problems in this description Or using marco like SDWebImageCompat avoid deadlocks #ifndef dispatch_queue_sync_safe #define dispatch_queue_sync_safe(queue, block)\ if (strcmp(dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL), dispatch_queue_get_label(queue)) == 0) {\ block();\ } else {\ dispatch_sync(queue, block);\ } #endif
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -154,7 +154,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot | @@ -154,7 +154,7 @@ typedef void(^SDWebImageCalculateSizeBlock)(NSUInteger fileCount, NSUInteger tot | ||
154 | /** | 154 | /** |
155 | * Synchronously store image NSData into disk cache at the given key. | 155 | * Synchronously store image NSData into disk cache at the given key. |
156 | * | 156 | * |
157 | - * @warning This method is synchronous, make sure to call it from the ioQueue | 157 | + * @warning This method is synchronous, make sure not to call it from the ioQueue |
158 | * | 158 | * |
159 | * @param imageData The image data to store | 159 | * @param imageData The image data to store |
160 | * @param key The unique image cache key, usually it's image absolute URL | 160 | * @param key The unique image cache key, usually it's image absolute URL |
-
Please register or login to post a comment