Multithreaded Programming Guide

Getting the Mutex's Robust Attribute

pthread_mutexattr_getrobust_np(3C) gets the robust attribute of a mutex attribute object.

pthread_mutexattr_getrobust_np Syntax

#include <pthread.h> 
int pthread_mutexattr_getrobust_np(const pthread_mutexattr_t *attr, int *robustness);

attr points to the mutex attribute object previously created by a call to pthread_mutexattr_init().

robustness is the value of the robust attribute of a mutex attribute object.

pthread_mutexattr_getrobust_np Return Values

On successful completion, pthread_mutexattr_getrobust_np() returns 0. Any other return value indicates that an error occurred.

pthread_mutexattr_getrobust_np() might fail if the following condition occurs:


EINVAL

Description:

The value specified by attr or robustness is invalid.