Implemented a read-write lock using only mutex_t and condvar_t (in case the pthread_rwlock_* group of functions is not available).

This commit is contained in:
Tobias Brunner
2009-12-23 17:01:30 +01:00
parent b1f35d0695
commit f36143b0ba
3 changed files with 188 additions and 1 deletions
+2 -1
View File
@@ -297,7 +297,8 @@ AC_TRY_RUN(
[AC_DEFINE([HAVE_CONDATTR_CLOCK_MONOTONIC])]
)]
)
dnl check if native rwlocks are available
AC_CHECK_FUNCS(pthread_rwlock_init)
LIBS=$saved_LIBS
AC_CHECK_FUNCS(prctl)