AFNetworking/AFNetworking — pull request #534 by ap4y (2012-09-21 13:48:59+00:00)
Title: Network activity indicator manager changes

Current implementation allow negative values for the activity counter, that could broke indicator updates. For example, if manager enabled between request lifecycle, it would prevent invocation of the incremental action, so decrement action will set counter to -1. First commit addresses that issue. I also noticed that manager calls indicator status change for every increment/decrement action, second commit changes that. And I wonder is it necessary to make synchronisation locks for the counter changes? I believe that write to atomic non-retained property should be atomic operation. Thank you!