Hash :
9b2dcfaf
Author :
Date :
2019-12-03T03:49:30
Fix some more link errors with --enable-threads=isoc. * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently. * modules/pthread-rwlock (Depends-on): Likewise.
Description:
POSIX mutexes (locks).
Files:
lib/pthread-mutex.c
m4/pthread-mutex.m4
Depends-on:
pthread-h
pthread_mutex_timedlock [test $gl_threads_api != windows]
windows-timedmutex [test $gl_threads_api = windows]
windows-timedrecmutex [test $gl_threads_api = windows]
configure.ac:
gl_PTHREAD_MUTEX
if test $HAVE_PTHREAD_MUTEX_INIT = 0 || test $REPLACE_PTHREAD_MUTEX_INIT = 1 \
|| test $HAVE_PTHREAD_MUTEXATTR_GETROBUST = 0 || test $REPLACE_PTHREAD_MUTEXATTR_GETROBUST = 1; then
AC_LIBOBJ([pthread-mutex])
fi
gl_PTHREAD_MODULE_INDICATOR([pthread-mutex])
Makefile.am:
Include:
<pthread.h>
Link:
$(LIBPTHREAD) or $(LIBPMULTITHREAD)
License:
LGPLv2+
Maintainer:
all