Specifies the mutex type attribute.
Syntax
cma_attr_set_mutex_kind(
attr, kind);
Argument Data Type Access
attr opaque cma_t_attr read
kind opaque cma_t_mutex_ read
kind
C Binding
#include
void
cma_attr_set_mutex_kind (
cma_t_attr *attr,
cma_t_mutex_kind kind);
Arguments
- attr
- Handle of the attributes object modified.
- kind
- New value for the mutex type attribute. The kind
argument specifies the type of mutex that is created. Valid values
are cma_c_mutex_fast (default), cma_c_mutex_recursive, and cma_c_
mutex_nonrecursive.
Description
This routine sets the mutex type attribute that is used when a
mutex is created. A mutex can be fast, recursive, or nonrecursive.
See Section 2.3.1 for more information on the
types of mutexes.
Exceptions
cma_e_badparam
cma_e_existence
cma_e_use_error