| 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.
| “ | Do you laugh when the waiter drops a tray full of dishes? Unix weenies do. They're the first ones to laugh at hapless users, trying to figure out an error message that doesn't have anything to do with what they just typed. | ” |
| — The Unix Haters' handbook | ||