concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

Occasionally program can be stuck inside try_dequeue of blockingconcurrentqueue.h

Open wudandan1221 opened this issue 2 years ago • 1 comments

Why try_dequeue functions of blocking queue use while instead of if? when inner.try_dequeue(item) return false, it will never get out.

wudandan1221 avatar Dec 01 '23 03:12 wudandan1221

To take care of races. It should never get stuck in that loop.

cameron314 avatar Dec 01 '23 03:12 cameron314