codereviewanskquestions
codereviewanskquestions

Reputation: 13978

Objective C, Syncronized

 @Syncronized(nodeMode.neighborNodeListeners) //neighborNodeListeners is NSMutalble array

Lets say I set neighborNodeListeners as

 @property(retain) NSMutableArray *neighborNodeListeners

Do I still need the Syncronized block? "neighborNodeListeners" will be accessed by multiple threads

Upvotes: 0

Views: 418

Answers (1)

SNR
SNR

Reputation: 1249

I think its not needed. Default property is atomic.

Upvotes: 1

Related Questions