Back to index

glibc  2.9
Functions
pthread_condattr_getclock.c File Reference
#include "pthreadP.h"

Go to the source code of this file.

Functions

int pthread_condattr_getclock (pthread_condattr_t *attr, clockid_t *clock_id) const

Function Documentation

int pthread_condattr_getclock ( pthread_condattr_t attr,
clockid_t *  clock_id 
) const

Definition at line 24 of file pthread_condattr_getclock.c.

{
  *clock_id = (((((const struct pthread_condattr *) attr)->value) >> 1)
              & ((1 << COND_NWAITERS_SHIFT) - 1));
  return 0;
}