re-initialize after doing ck-ring-init

Skip to first unread message

Sameer Kumar

Oct 15, 2015, 3:17:54 AM10/15/15
to Samy Bahra,
Hi Samy,

The consumer queue has been initialized by ck_ring_init with size 512.

Here is the issue.
The consumer queue is full. The producer thread does not want to wait till the consumer has consumed the data, and wants to quickly add to the consumer queue and go. 

* can the producer reinitialize and increase the queue length to increase the size of consumer queue ?
* If not, Is there any better solution than waiting for consumer to process? 


Dec 30, 2015, 2:18:31 PM12/30/15
to Concurrency Kit,

This behavior is not supported at the moment. You can try increasing the initialize size until it would not get full or fallback to an unbounded slow path (blocking or non-blocking).
Reply all
Reply to author
0 new messages