Closed yyf117 closed 1 year ago
No. You must repeatedly dequeue, or, if the queue is not being used from any other thread, you can assign an empty temporary:
q = ConcurrentQueue<int>();
thanks.I try to do it like that: // qq0=new moodycamel::ConcurrentQueuecv::UMat; //
//Under certain conditions,try to clear all data elements in queue qq0; UMat r[64];//To clear data at once,i need to set this number larger,such as 64,or 128, ... ,etc. qq0->try_dequeue_bulk(r,64); It doesn't look very convenient to use this way will you update the version and add an API for clearing data at once oneday?
No, sorry, see #150 (comment)
Anyway,thanks again.
No. You must repeatedly dequeue, or, if the queue is not being used from any other thread, you can assign an empty temporary: