pthread_mutex_getname_np()

get name associated with mutex 

Function


SYNOPSIS

#include <pthread.h>

int pthread_mutex_getname_np(pthread_mutex_t *mutex, const char **name);


DESCRIPTION

The pthread_mutex_getname_np() function returns the name associated with the specified mutex, if any, in the specified pointer name.


PARAMETERS

mutex 

Is the mutex whose name is to be obtained.

name 

Is the location where the name should be stored.


RETURN VALUES

On success, pthread_mutex_getname_np() returns 0. On error, one of the following values is returned:

EINVAL 

mutex does not refer to an initialized mutex, or the location pointed to by name is not writable.

EFAULT 

mutex or name is an invalid pointer.


CONFORMANCE

MKS Toolkit UNIX APIs extension.


MULTITHREAD SAFETY LEVEL

MT-safe.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
pthread_mutex_init(), pthread_mutex_setname_np()


MKS Toolkit 9.3 Documentation Build 6.