AFNetworking/AFNetworking
Jon Parise 0dbff8387b Serialize calls to responseJSON using a lock.
AFJSONRequestOperation's completion path calls `responseJSON` from a
processing queue.  Because `responseJSON` "lazily" deserializes the
response data into a JSON object, it needs to be protected against
concurrent access from other queues (threads).

For example, `AFNetworkingOperationDidFinishNotification` is posted
when the operation finishes but perhaps before that processing queue
has finishing executing.  Notification observers who also access
`responseJSON` end up in a race with that queue that often leads to a
crash.

We reuse the existing lock from our AFURLConnectionOperation base
class.
2013-01-30 12:25:22 -08:00
..
AFHTTPClient.h Fixing @param name to correspond to actual parameter (filename -> fileName) 2013-01-29 15:31:12 +00:00
AFHTTPClient.m Revert "Fixing warning caused by default statement in switch statement that covered all enumeration values" 2013-01-30 16:25:56 +00:00
AFHTTPRequestOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFHTTPRequestOperation.m Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFImageRequestOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFImageRequestOperation.m Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFJSONRequestOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFJSONRequestOperation.m Serialize calls to responseJSON using a lock. 2013-01-30 12:25:22 -08:00
AFNetworkActivityIndicatorManager.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFNetworkActivityIndicatorManager.m Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFNetworking.h Merge branch 'fixes-for-strict-warnings' of https://github.com/ittybittyapps/AFNetworking into ittybittyapps-fixes-for-strict-warnings 2012-11-30 15:09:11 -08:00
AFPropertyListRequestOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFPropertyListRequestOperation.m Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFURLConnectionOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFURLConnectionOperation.m Merge branch 'experimental-issue-738' 2013-01-27 13:26:04 -05:00
AFXMLRequestOperation.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
AFXMLRequestOperation.m Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
UIImageView+AFNetworking.h Whitespace formatting by Xcode re-indentation 2013-01-27 12:15:07 -05:00
UIImageView+AFNetworking.m Whitespace formatting 2013-01-26 10:31:16 -05:00