互斥锁

   @synchronized(self){

//多线程中异步  读取同一个资源 可能出现数据重复问题   用互斥锁解决

}

原文地址:https://www.cnblogs.com/zhibin/p/4152280.html