ARGOBOTS
|
Functions | |
int | ABT_mutex_attr_create (ABT_mutex_attr *newattr) |
Create a new mutex attribute object. More... | |
int | ABT_mutex_attr_free (ABT_mutex_attr *attr) |
Free the mutex attribute object. More... | |
int | ABT_mutex_attr_set_recursive (ABT_mutex_attr attr, ABT_bool recursive) |
Set the recursive property in the attribute object. More... | |
Attributes are used to specify mutex behavior that is different from the default. When a mutex is created with ABT_mutex_create_with_attr()
, attributes can be specified with an ABT_mutex_attr
object.
int ABT_mutex_attr_create | ( | ABT_mutex_attr * | newattr | ) |
Create a new mutex attribute object.
ABT_mutex_attr_create()
creates a mutex attribute object with default attribute values. The handle to the attribute object is returned through newattr
. The attribute object can be used in more than one mutex.
[out] | newattr | handle to a new attribute object |
ABT_SUCCESS | on success |
Definition at line 26 of file mutex_attr.c.
int ABT_mutex_attr_free | ( | ABT_mutex_attr * | attr | ) |
Free the mutex attribute object.
ABT_mutex_attr_free()
deallocates memory used for the mutex attribute object. If this function successfully returns, attr
will be set to ABT_MUTEX_ATTR_NULL
.
[in,out] | attr | handle to the target attribute object |
ABT_SUCCESS | on success |
Definition at line 58 of file mutex_attr.c.
int ABT_mutex_attr_set_recursive | ( | ABT_mutex_attr | attr, |
ABT_bool | recursive | ||
) |
Set the recursive property in the attribute object.
ABT_mutex_attr_set_recursive()
sets the recursive property (i.e., whether the mutex can be locked multiple times by the same owner) in the attribute object associated with handle attr
.
[in] | attr | handle to the target attribute object |
[in] | recursive | boolean value for the recursive locking support |
ABT_SUCCESS | on success |
Definition at line 92 of file mutex_attr.c.