Queue : Assertion on clear

Queue : Assertion on clear

Hi all,
I am using tbb2.1. When I am trying to "clear" the queue, I am getting an assertion saying that "Assertion my_rep->array[i].head_page==tp failed on line 653 of file ../src/tbb/concurrent_queue.cpp. Detailed description : at most one page should remain."
I am using debug libraries i.e. tbb_debug & tbbmalloc_debug.

Code :

tbb::concurrent_queue iq;

iq.push(2);
iq.push(3);

iq.clear(); //Asserts here.

Thanks in advance.

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Thanks for spotting another issue. Unfortunately, I am not able to reproduce this issue.

Could you wait for the next development release and re-test it and let us know the outcome?

thanks a lot

Leave a Comment

Please sign in to add a comment. Not a member? Join today