Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pthread_mutexattr_setkind_np(3) [freebsd man page]

PTHREAD_MUTEXATTR_GETKIND_NP(3) 			   BSD Library Functions Manual 			   PTHREAD_MUTEXATTR_GETKIND_NP(3)

NAME
pthread_mutexattr_getkind_np, pthread_mutexattr_setkind_np -- mutex attribute operations (legacy) LIBRARY
POSIX Threads Library (libpthread, -lpthread) SYNOPSIS
#include <pthread_np.h> int pthread_mutexattr_getkind_np(pthread_mutexattr_t attr); int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind); DESCRIPTION
These functions are deprecated and non-portable implementation of the mutex type manipulation. It is recommended to use the pthread_mutexattr_gettype(3) and pthread_mutexattr_settype(3) functions instead. RETURN VALUES
The pthread_mutexattr_getkind_np() function returns a positive value representing the ``kind'' of the mutex attribute attr if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. The pthread_mutexattr_setkind_np() function returns the value 0 if successful; otherwise the value -1 is returned and the global variable errno is set to indicate the error. ERRORS
The pthread_mutexattr_getkind_np() and pthread_mutexattr_setkind_np() functions will fail if: [EINVAL] The value specified by attr is invalid. SEE ALSO
pthread_mutex_destroy(3), pthread_mutex_init(3), pthread_mutexattr_gettype(3), pthread_mutexattr_settype(3) BSD
February 13, 2003 BSD

Check Out this Related Man Page

PTHREAD_MUTEXATTR_SETKIND_NP(3) 			     Library Functions Manual				   PTHREAD_MUTEXATTR_SETKIND_NP(3)

NAME
pthread_mutexattr_setkind_np, pthread_mutexattr_getkind_np - deprecated mutex creation attributes SYNOPSIS
#include <pthread.h> int pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind); int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind); DESCRIPTION
These functions are deprecated, use pthread_mutexattr_settype(3) and pthread_mutexattr_gettype(3) instead. RETURN VALUE
pthread_mutexattr_getkind_np always returns 0. pthread_mutexattr_setkind_np returns 0 on success and a non-zero error code on error. ERRORS
On error, pthread_mutexattr_setkind_np returns the following error code: EINVAL kind is neither PTHREAD_MUTEX_FAST_NP nor PTHREAD_MUTEX_RECURSIVE_NP nor PTHREAD_MUTEX_ERRORCHECK_NP AUTHOR
Xavier Leroy <Xavier.Leroy@inria.fr> SEE ALSO
pthread_mutexattr_settype(3), pthread_mutexattr_gettype(3). LinuxThreads PTHREAD_MUTEXATTR_SETKIND_NP(3)
Man Page