| Main index | Section 3 | Options |
#include <pthread.h>
The pthread_attr_init() function initializes attr with all the default thread attributes.
The pthread_attr_destroy() function destroys attr.
The pthread_attr_set*() functions set the attribute that corresponds to each function name.
The pthread_attr_get*() functions copy the value of the attribute that corresponds to each function name to the location pointed to by the second function parameter.
| [ENOMEM] | |
| Out of memory. | |
The pthread_attr_destroy() function will fail if:
| [EINVAL] | |
| Invalid value for attr. | |
The pthread_attr_setstacksize() and pthread_attr_setstack() functions will fail if:
| [EINVAL] | |
| stacksize is less than PTHREAD_STACK_MIN. | |
The pthread_attr_setdetachstate() function will fail if:
| [EINVAL] | |
| Invalid value for detachstate. | |
The pthread_attr_setinheritsched() function will fail if:
| [EINVAL] | |
| Invalid value for attr. | |
The pthread_attr_setschedparam() function will fail if:
| [EINVAL] | |
| Invalid value for attr. | |
| [ENOTSUP] | |
| Invalid value for param. | |
The pthread_attr_setschedpolicy() function will fail if:
| [EINVAL] | |
| Invalid value for attr. | |
| [ENOTSUP] | |
| Invalid or unsupported value for policy. | |
The pthread_attr_setscope() function will fail if:
| [EINVAL] | |
| Invalid value for attr. | |
| [ENOTSUP] | |
| Invalid or unsupported value for contentionscope. | |
The pthread_attr_setinheritsched(), pthread_attr_getinheritsched(), pthread_attr_setschedparam(), pthread_attr_getschedparam(), pthread_attr_setschedpolicy(), pthread_attr_getschedpolicy(), pthread_attr_setscope(), and pthread_attr_getscope() functions conform to Version 2 of the Single UNIX Specification
| PTHREAD_ATTR (3) | August 17, 2018 |
| Main index | Section 3 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
| “ | Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. | ” |
| — The Unix Haters' handbook | ||