Back to index

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

Go to the source code of this file.

Functions

int pthread_condattr_getpshared (pthread_condattr_t *attr, int *pshared) const

Function Documentation

int pthread_condattr_getpshared ( pthread_condattr_t attr,
int pshared 
) const

Definition at line 24 of file pthread_condattr_getpshared.c.

{
  *pshared = ((const struct pthread_condattr *) attr)->value & 1;

  return 0;
}