Standards / Extensions | C or C++ | Dependencies |
---|---|---|
z/OS® UNIX | both | POSIX(ON) |
#define _OPEN_SYS
#include <pthread.h>
int pthread_attr_getsynctype_np(pthread_attr_t *attr);
The pthread_attr_getsynctype_np function returns the current synctype setting of the attr thread attribute object.
If successful, pthread_attr_getsynctype_np() returns the synctype value of the thread attribute object.
If unsuccessful, pthread_attr_getsynctype_np() returns -1.
There are no documented errno values. Use perror() or strerror() to determine cause of the error.