Open System Services System Calls Reference Manual (G06.25+, H06.03+)
pthread_condattr_destroy(2) OSS System Calls Reference Manual
NAME
pthread_condattr_destroy
- Destroys a condition variable 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_condattr_destroy(
pthread_condattr_t *attr );
PARAMETERS
attr specifies the condition variable attributes object to be destroyed.
DESCRIPTION
This function destroys the specified condition variable attributes object by uninitializing the
object.
Destroying an attributes object does not affect any condition variables that were created using
that attributes object.
After this function is called, using the value of attr in a call to any function other than the
pthread_condattr_init() function returns an error.
NOTES
The pthread_condattr_init() and pthread_condattr_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 error return values are:
0 Successful completion.
[EINVAL] The condition variable attributes object specified by the attr parameter is invalid.
RELATED INFORMATION
Functions: pthread_condattr_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−52 Hewlett-Packard Company 527186-003