Skip to content

Commit 01a77db

Browse files
author
孙春磊
committed
...
1 parent f5f51d6 commit 01a77db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GCD/GCD/GCDBaseViewController.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ - (void)autoreleasepool01{
9696
NSLog(@"%@",self.weakstring);
9797
}
9898

99+
// <MARK:一个面试题引发的血案之--线程安全>
99100
- (void)threadSafe{
100-
101+
// https://www.jianshu.com/p/cec2a41aa0e7
101102
NSLog(@"threadSafe");
102103
// 注意这个字符串长度一定要足够长不然在64位系统中会有Tagged Point(可以理解为假指针)的问题导致测试结果不一样
103104
// 出现了‘坏内存’访问-EXC_BAD_ACCESS

0 commit comments

Comments
 (0)