Back to index

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

Go to the source code of this file.


int pthread_mutex_consistent_np (pthread_mutex_t *mutex)

Function Documentation

Definition at line 25 of file pthread_mutex_consistent.c.

  /* Test whether this is a robust mutex with a dead owner.  */
  if ((mutex->__data.__kind & PTHREAD_MUTEX_ROBUST_NORMAL_NP) == 0
      || mutex->__data.__owner != PTHREAD_MUTEX_INCONSISTENT)
    return EINVAL;

  mutex->__data.__owner = THREAD_GETMEM (THREAD_SELF, tid);

  return 0;

Here is the caller graph for this function: