re-initialize after doing ck-ring-init

34 views
Skip to first unread message

Sameer Kumar

unread,
Oct 15, 2015, 3:17:54 AM10/15/15
to Samy Bahra, concurr...@googlegroups.com
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? 

sbahra

unread,
Dec 30, 2015, 2:18:31 PM12/30/15
to Concurrency Kit, sba...@repnop.org
Hi,

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
Forward
0 new messages