]> Savannah Git Hosting - gnulib.git/commit
thrd: Work around thrd_join bug on AIX 7.3.1.
authorBruno Haible <bruno@clisp.org>
Fri, 18 Aug 2023 20:38:04 +0000 (22:38 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 18 Aug 2023 20:38:04 +0000 (22:38 +0200)
commit2d963d69277dd30563312b0311af3cb53a9d142e
tree9c992dfb3449fb5dfc2cfef5841b2ddd918b9cda
parent51511a7a964f114eee12f34946e1b517c6e56d85
thrd: Work around thrd_join bug on AIX 7.3.1.

* m4/threads_h.m4 (gl_THREADS_H): Test against AIX 7 thrd_join bug. Set
BROKEN_THRD_JOIN.
(gl_THREADS_H_DEFAULTS): Initialize BROKEN_THRD_JOIN.
* m4/thrd.m4 (gl_FUNC_THRD_JOIN): Set REPLACE_THRD_* to 1 also if
BROKEN_THRD_JOIN is 1. Define BROKEN_THRD_START_T_OR_JOIN instead of
BROKEN_THRD_START_T.
* modules/threads-h (Makefile.am): Substitute BROKEN_THRD_JOIN.
* lib/threads.in.h (rpl_thrd_t, thrd_t): Define also if BROKEN_THRD_JOIN
is 1.
* lib/thrd.c: Test BROKEN_THRD_START_T_OR_JOIN instead of
BROKEN_THRD_START_T.
* doc/posix-functions/thrd_join.texi: Update.
* doc/posix-functions/thrd_exit.texi: Likewise.
ChangeLog
doc/posix-functions/thrd_exit.texi
doc/posix-functions/thrd_join.texi
lib/thrd.c
lib/threads.in.h
m4/thrd.m4
m4/threads_h.m4
modules/threads-h