Add a mutex/condvar based semaphore implementation if sem_timedwait is unavailable

Fixes #214.
This commit is contained in:
Martin Willi
2012-08-20 17:20:26 +02:00
parent f39b3915cd
commit 907d3d0f1d
2 changed files with 69 additions and 2 deletions
+2
View File
@@ -409,6 +409,8 @@ dnl check if we can cancel threads
AC_CHECK_FUNCS(pthread_cancel)
dnl check if native rwlocks are available
AC_CHECK_FUNCS(pthread_rwlock_init)
dnl check if we have POSIX semaphore functions, including timed-wait
AC_CHECK_FUNCS(sem_timedwait)
LIBS=$saved_LIBS
AC_CHECK_FUNC(