JJException icon indicating copy to clipboard operation
JJException copied to clipboard

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

Open songzhiming opened this issue 2 years ago • 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

songzhiming avatar Mar 18 '22 01:03 songzhiming

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

jezzmemo avatar Mar 20 '22 07:03 jezzmemo