Open wudandan1221 opened 11 months ago
Why try_dequeue functions of blocking queue use while instead of if? when inner.try_dequeue(item) return false, it will never get out.
To take care of races. It should never get stuck in that loop.
Why try_dequeue functions of blocking queue use while instead of if? when inner.try_dequeue(item) return false, it will never get out.