Commit graph

7 commits

Author SHA1 Message Date
Mattt Thompson
e76262c275 Adding enabled @property to AFNetworkActivityIndicatorManager
Decoupling AFNetworkActivityIndicatorManager from AFHTTPRequestOperation, by using notifications instead of directly incrementing and decrementing the activity count

Initializing the network activity indicator in App Delegate
2011-09-23 15:01:19 -05:00
Mattt Thompson
c84ca99269 Adding documentation for AFNetworkActivityIndicatorManager
Changing public API for AFNetworkActivityIndicatorManager from -start/stopAnimating to -increment/decrementActivityCount
2011-09-22 10:25:55 -05:00
Evan Long
ef0cb81909 Ok, making the entire reading and increment atomic. 2011-08-30 22:36:24 -07:00
Evan Long
9a0ed2497c Need the reads on the property to be atomic as well. Otherwise there as cases like 'startAnimating' getting called from two seperate threads. Each would read a value A. The first thread would then write the value A+1. Thread 2 also read A so it would also write A+1. As a result missing an increment 2011-08-30 22:01:03 -07:00
Evan Long
dddd567424 Making AFImageCache lazy init thread safe since it is called from main thread and background threads. Also making the increment and decrement for AFNetworkActivityIndicatorManager thread safe since start/stopAnimating are called from different threads. 2011-08-30 17:16:23 -07:00
Mattt Thompson
6d213e0bde Changing activity status counter to signed integer, to ensure MAX(0,_activityCount) is enforced as expected 2011-08-14 20:11:49 -05:00
Mattt Thompson
f169a93f58 Moving AFNetworking classes into correct directory 2011-07-27 15:20:37 -05:00
Renamed from Example/AFNetworkActivityIndicatorManager.m (Browse further)