jezzmemo / JJException

Protect the objective-c application(保护App不闪退)
MIT License
1.63k stars 268 forks source link

看源码的时候,为啥初始化要加信号量 同步 #121

Open songzhiming opened 2 years ago

songzhiming commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

image

jezzmemo commented 2 years ago

为了保证这个方法的原子性操作,因为这个方法的功能就是交换方法,防止在多线程出现问题,而增加一层锁操作