cameron314 / concurrentqueue

A fast multi-producer, multi-consumer lock-free concurrent queue for C++11
Other
9.86k stars 1.69k forks source link

In the function waitWithPartialSpinning, is it a bug? #352

Closed lazyze closed 1 year ago

lazyze commented 1 year ago

In file lightweightsemaphore.h, why in function waitWithPartialSpinning(line 278), on line 307,oldCount >= 0 is satisfied, but m_sema.try_wait() returns false

lazyze commented 1 year ago

Incorrect use