Hash :
f9f125c4
Author :
Date :
2024-08-06T15:43:16
pthread-mutex tests: Strengthen tests. * tests/test-pthread-mutex-type.c: New file. * modules/pthread-mutex-tests (Files): Add it. (Makefile.am): Arrange to test test-pthread-mutex-type. * doc/posix-functions/pthread_mutex_lock.texi: Mention FreeBSD and NetBSD problem. * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
@node pthread_mutex_trylock
@subsection @code{pthread_mutex_trylock}
@findex pthread_mutex_trylock
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/pthread_mutex_trylock.html}
Gnulib module: pthread-mutex
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
Minix 3.1.8, mingw, MSVC 14.
But the provided replacement is just a dummy on some of these platforms:
Minix 3.1.8.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
This function does not behave as required by POSIX for mutexes of type
NORMAL and ERRORCHECK, by allowing RECURSIVE locking,
in programs linked without @code{-lpthread} on some platforms:
FreeBSD 14.0, NetBSD 10.0.
@end itemize