jezzmemo/JJException

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

Opened this issue · 1 comments

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

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