pool
pool copied to clipboard
加锁吗?
p.RLock()
current := atomic.LoadInt32(&p.current)
p.RUnlock()
请问一下,使用了atomic为什么还需要加锁?加锁和原子化是不是其中有一个多余了呢?