concurrentqueue
concurrentqueue copied to clipboard
Occasionally program can be stuck inside try_dequeue of blockingconcurrentqueue.h
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.