mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-08 17:22:05 +03:00
pthread-mutex: New module.
* lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init, pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock, pthread_mutex_unlock): Remove inline definitions. * lib/pthread-mutex.c: New file. * m4/pthread-mutex.m4: New file. * modules/pthread-mutex: New file. * doc/posix-functions/pthread_mutex_init.texi: Mention the new module. * doc/posix-functions/pthread_mutexattr_init.texi: Likewise. * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise. * doc/posix-functions/pthread_mutex_lock.texi: Likewise. * doc/posix-functions/pthread_mutex_trylock.texi: Likewise. * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise. * doc/posix-functions/pthread_mutex_unlock.texi: Likewise. * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
This commit is contained in:
33
modules/pthread-mutex
Normal file
33
modules/pthread-mutex
Normal file
@@ -0,0 +1,33 @@
|
||||
Description:
|
||||
POSIX mutexes (locks).
|
||||
|
||||
Files:
|
||||
lib/pthread-mutex.c
|
||||
m4/pthread-mutex.m4
|
||||
|
||||
Depends-on:
|
||||
pthread-h
|
||||
pthread_mutex_timedlock [test $gl_threads_api = posix]
|
||||
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; then
|
||||
AC_LIBOBJ([pthread-mutex])
|
||||
fi
|
||||
gl_PTHREAD_MODULE_INDICATOR([pthread-mutex])
|
||||
|
||||
Makefile.am:
|
||||
|
||||
Include:
|
||||
<pthread.h>
|
||||
|
||||
Link:
|
||||
$(LIBTHREAD) or $(LIBMULTITHREAD)
|
||||
|
||||
License:
|
||||
LGPLv2+
|
||||
|
||||
Maintainer:
|
||||
all
|
Reference in New Issue
Block a user