File:  [DVB] / dietlibc / libpthread / pthread_mutexattr_setkind_np.c
Revision 1.3: download - view: text, annotated - select for diffs
Mon Aug 18 17:32:53 2003 UTC (20 years, 9 months ago) by sanjiyan
Branches: MAIN
CVS tags: HEAD
- checkin of the new libpthread
- add confstr

#include <unistd.h>
#include <errno.h>

#include <pthread.h>
#include "thread_internal.h"

int pthread_mutexattr_setkind_np(pthread_mutexattr_t*attr,int kind) {
  if ((kind==PTHREAD_MUTEX_FAST_NP)||(kind==PTHREAD_MUTEX_RECURSIVE_NP)||
      (kind==PTHREAD_MUTEX_ERRORCHECK_NP)) {
    attr->__mutexkind=kind;
    return 0;
  }
  return EINVAL;
}

LinuxTV legacy CVS <linuxtv.org/cvs>