Open System Services System Calls Reference Manual (G06.28+)
pthread_mutexattr_destroy(2) OSS System Calls Reference Manual
NAME
pthread_mutexattr_destroy
- Destroys a mutex attributes object
LIBRARY
G-series native OSS processes: /G/system/sysnn/zsptsrl
H-series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <spthread.h>
int pthread_mutexattr_destroy(
pthread_mutexattr_t *
attr);
PARAMETERS
attr specifies the mutex attributes object to be destroyed.
DESCRIPTION
This function destroys a mutex attributes object by unintializing it. Call this function when your
program no longer needs the specified mutex attributes object.
After this function is called, the system might reclaim the storage used by the destroyed mutex
attributes object. Destroying a mutex attributes object does not affect any mutexes that were pre-
viously created using that mutex attributes object.
NOTES
The pthread_mutexattr_init( ) and pthread_mutexattr_destroy() functions are provided for
future expansion of the threads interface and to conform with the POSIX.1c standard. These
functions are not currently useful, because the functions to set and get the process shared attri-
bute are not supported by this implementation.
RETURN VALUES
If an error condition occurs, this function returns an integer value indicating the type of error.
Possible return values are:
0 Successful completion.
[EINVAL] The value specified by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_mutexattr_init(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference page conform to the following industry standards:
• IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
5−82 Hewlett-Packard Company 527186-005