开发者

iPhone accessing one resource by two threads

I want t开发者_StackOverflowo synchronize one queue among two threads. Such as one thread performs enqueue and other performs dequeue. Any ideas??


Cocoa class like NSArray or NSMutableArray is non thread safe, you have to use object NSLock class to make them thread safe.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜