Interlocked operations in iOS?

前端 未结 4 743
感动是毒
感动是毒 2021-01-04 08:11

Are there interlocked(atomic) operations in iOS SDK?

I need interlocked increment\\decrement and interlocked comparsion.

*UPDATE: * My main proble

4条回答
  •  自闭症患者
    2021-01-04 08:49

    You can use the OSAtomicIncrement*/OSAtomicDecrement* operations described in Using Atomic Operations.

提交回复
热议问题