Sponsor:

Your company here, and a link to your site. Click to find out more.

pthread_mutexattr_setkind_np - Man Page

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.

See Also

pthread_mutexattr_settype(3), pthread_mutexattr_gettype(3).

Referenced By

pthread_mutex_init(3).

2023-10-31 Linux man-pages 6.7