目标C,同步

时间:2011-03-14 05:33:42

标签: objective-c multithreading

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

假设我将neighborNodeListeners设置为

 @property(retain) NSMutableArray *neighborNodeListeners

我还需要Syncronized块吗? “neighborNodeListeners”将由多个线程访问

1 个答案:

答案 0 :(得分:1)

我认为不需要它。默认属性为atomic