Obtains the mutex type attribute.
Syntax
cma_attr_get_mutex_kind(
attr,
kind);
Argument Data Type Access
attr opaque cma_t_attr read
kind opaque cma_t_mutex_ write
kind
C Binding
#include
void
cma_attr_get_mutex_kind (
cma_t_attr *attr,
cma_t_mutex_kind *kind);
Arguments
- attr
- Handle of the attributes object whose mutex type is obtained.
- kind
- Value of 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. (See Section 2.3.1 for
definitions of the types of mutexes.)
Description
This service obtains the mutex type attribute that is used
when a mutex is created. See the cma_attr_set_mutex_kind description
for information about mutex type attributes.
Exceptions
cma_e_existence
cma_e_use_error