Back to index

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

Go to the source code of this file.

Functions

int pthread_rwlockattr_getkind_np (pthread_rwlockattr_t *attr, int *pref) const

Function Documentation

int pthread_rwlockattr_getkind_np ( pthread_rwlockattr_t *  attr,
int pref 
) const

Definition at line 24 of file pthread_rwlockattr_getkind_np.c.

{
  *pref = ((const struct pthread_rwlockattr *) attr)->lockkind;

  return 0;
}