Open ganvinalix opened 3 years ago
[self.localNewPromptDic writeToFile:pListPath atomically:YES];
1.系统调用,此时申请了lock
- (void)enumerateKeysAndObjectsWithOptions:(NSEnumerationOptions)opts usingBlock:(void (^)(id key, id obj, BOOL *stop))block { LOCK([_dic enumerateKeysAndObjectsWithOptions:opts usingBlock:block]); }
- (NSUInteger)hash { LOCK(NSUInteger hash = [_dic hash]); return hash; }
建议:LOCK 改为递归锁?
[self.localNewPromptDic writeToFile:pListPath atomically:YES];
1.系统调用,此时申请了lock
建议:LOCK 改为递归锁?