Back to index

glibc  2.9
pthread_rwlockattr_init.c File Reference
#include "pthreadP.h"

Go to the source code of this file.


int pthread_rwlockattr_init (pthread_rwlockattr_t *attr)

Function Documentation

int pthread_rwlockattr_init ( pthread_rwlockattr_t *  attr)

Definition at line 24 of file pthread_rwlockattr_init.c.

  struct pthread_rwlockattr *iattr;

  iattr = (struct pthread_rwlockattr *) attr;

  iattr->lockkind = PTHREAD_RWLOCK_DEFAULT_NP;
  iattr->pshared = PTHREAD_PROCESS_PRIVATE;

  return 0;

Here is the caller graph for this function: