Back to index

glibc  2.9
Functions
pthread_mutex_getprioceiling.c File Reference
#include <errno.h>
#include <pthreadP.h>

Go to the source code of this file.

Functions

int pthread_mutex_getprioceiling (pthread_mutex_t *mutex, int *prioceiling) const

Function Documentation

int pthread_mutex_getprioceiling ( pthread_mutex_t mutex,
int prioceiling 
) const

Definition at line 26 of file pthread_mutex_getprioceiling.c.

{
  if (__builtin_expect ((mutex->__data.__kind
                      & PTHREAD_MUTEX_PRIO_PROTECT_NP) == 0, 0))
    return EINVAL;

  *prioceiling = (mutex->__data.__lock & PTHREAD_MUTEX_PRIO_CEILING_MASK)
               >> PTHREAD_MUTEX_PRIO_CEILING_SHIFT;

  return 0;
}

Here is the caller graph for this function: