Objective C, Syncronized
@Syncronized(nodeMode.ne开发者_开发问答ighborNodeListeners) //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
I think its not needed. Default property is atomic
.
精彩评论