concurrentqueue
concurrentqueue copied to clipboard
Hi,I met a problem as shown below when i use try_enqueue_bulk(prod_token, item_first, count)
What kind of input parameters would cause such assertion failed ? I try to reproduce it but i failed.
Are you using the same token from multiple threads?
yes, I create a producer token in producer thread and a consumer token in consumer thread.
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?
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.