Open System Services System Calls Reference Manual (G06.28+, H06.05+)
System Functions (n - p) pthread_mutexattr_destroy(2)
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 functions to set and get the process shared attribute are not supported by this implementa-
tion.
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.
527186-007 Hewlett-Packard Company 5−93