Open System Services System Calls Reference Manual (G06.28+, H06.05+)

System Functions (n - p) pthread_attr_destroy(2)
NAME
pthread_attr_destroy - Destroys a thread 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_attr_destroy(
pthread_attr_t *attr );
PARAMETERS
attr species the thread attributes object to be destroyed.
DESCRIPTION
This function destroys a thread attributes object. Call this function when a thread attributes
object will no longer be referenced.
Threads that were created using this thread attributes object are not affected by the destruction of
this thread attributes object.
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 specied by the attr parameter is invalid. |
RELATED INFORMATION
Functions: pthread_attr_init(2), pthread_create(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specication. 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 le spthread.h is an HP exception to the POSIX standard.
527186-007 Hewlett-Packard Company 529