concurrentqueue icon indicating copy to clipboard operation
concurrentqueue copied to clipboard

Hi,I met a problem as shown below when i use try_enqueue_bulk(prod_token, item_first, count)

Open qbq600 opened this issue 3 years ago • 4 comments

What kind of input parameters would cause such assertion failed ? I try to reproduce it but i failed.

1983195403

qbq600 avatar Jan 06 '22 13:01 qbq600

Are you using the same token from multiple threads?

cameron314 avatar Jan 06 '22 13:01 cameron314

yes, I create a producer token in producer thread and a consumer token in consumer thread.

qbq600 avatar Jan 06 '22 13:01 qbq600

Sounds like that's still only one thread using each token. Based on the information provided, there's no reason for the queue to assert.

Can you share some code?

cameron314 avatar Jan 06 '22 13:01 cameron314

Sounds like that's still only one thread using each token. Based on the information provided, there's no reason for the queue to assert.

Can you share some code?

ok,I will upload the code tomorrow.

qbq600 avatar Jan 06 '22 13:01 qbq600