Use pthread's own rwlock, if available
git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@223 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
parent
d88cb613d5
commit
7d861f9106
|
|
@ -31,8 +31,8 @@
|
|||
#include <errno.h>
|
||||
#include "rwlock.h"
|
||||
|
||||
#ifndef HAVE_PTHREAD_RWLOCK
|
||||
|
||||
#ifndef PTHREAD_RWLOCK_INITIALIZER
|
||||
// #ifndef HAVE_PTHREAD_RWLOCK
|
||||
|
||||
/*
|
||||
* Initialize a read-write lock
|
||||
|
|
|
|||
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef HAVE_PTHREAD_RWLOCK
|
||||
#ifdef PTHREAD_RWLOCK_INITIALIZER
|
||||
// #ifdef HAVE_PTHREAD_RWLOCK
|
||||
|
||||
#define rwlock_t pthread_rwlock_t
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue