]> 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>
Wed, 30 Aug 2023 10:15:31 +0000 (12:15 +0200)
commit99db366a0ae3a2b1f222bc42e2eed19ce3dbad69
treec9cfce00336044677eef48a17cc27e311e21115e
parentd2576e3a2739c5847e2b0880494779924e5e713e
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