Browse files

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
  • Loading branch information...
Evan Long
Evan Long committed Aug 31, 2011
1 parent dddd567 commit 9a0ed2497c6ce769d37ea5f0ab096f1a8d8c3ffe
Showing with 1 addition and 1 deletion.
  1. +1 −1 AFNetworking/AFNetworkActivityIndicatorManager.m
@@ -23,7 +23,7 @@
#import "AFNetworkActivityIndicatorManager.h"
@interface AFNetworkActivityIndicatorManager ()
-@property (readwrite, nonatomic, assign) NSInteger activityCount;
+@property (readwrite, assign) NSInteger activityCount;
@implementation AFNetworkActivityIndicatorManager

0 comments on commit 9a0ed24

Please sign in to comment.