]> 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 09:48:42 +0000 (11:48 +0200)
commit4fcaf23ca754d8dfb83bce60057fa502405483a3
treefd7f707fdf97906a21e9342c022e03e03f0dec84
parent5535176a9ebfa616bd6fc20bdf401538d76bc776
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