Back to index

glibc  2.9
pthread_mutexattr_getprioceiling.c File Reference
#include <pthreadP.h>

Go to the source code of this file.


int pthread_mutexattr_getprioceiling (pthread_mutexattr_t *attr, int *prioceiling) const

Function Documentation

int pthread_mutexattr_getprioceiling ( pthread_mutexattr_t attr,
int prioceiling 
) const

Definition at line 25 of file pthread_mutexattr_getprioceiling.c.

  const struct pthread_mutexattr *iattr;
  int ceiling;

  iattr = (const struct pthread_mutexattr *) attr;

  ceiling = ((iattr->mutexkind & PTHREAD_MUTEXATTR_PRIO_CEILING_MASK)

  if (! ceiling)
      if (__sched_fifo_min_prio == -1)
       __init_sched_fifo_prio ();
      if (ceiling < __sched_fifo_min_prio)
       ceiling = __sched_fifo_min_prio;

  *prioceiling = ceiling;

  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: