[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


cma_lib_attr_set_queuesize

Specifies the attribute for the maximum number of elements allowed on an atomic queue that is used when a queue is created.

Syntax

cma_lib_attr_set_queuesize (attr, queuesize)
 


Argument Data Type Access

attr opaque cma_lib_t_attr read queuesize opaque cma_t_natural read


C Binding

void
cma_lib_attr_set_queuesize (
cma_lib_t_attr *attr,
cma_t_natural queuesize);

Arguments

attr
Handle of the library attributes object to be modified. This value is returned by cma_lib_attr_create.
queuesize
New value for the queuesize attribute. The default value is 128.

Description

This routine sets the queuesize attribute that is used when a queue is created. The queuesize attribute specifies the maximum number of elements allowed on a queue.

A queue contains a fixed number of available queue items. Call this routine if you want to increase or decrease the queue size of new queues when they are created.

Exceptions

cma_e_badparam
cma_e_existence
cma_e_use_error



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]