]> git.ipfire.org Git - thirdparty/gettext.git/commit
libgettextpo: Make function po_format_list() multithread-safe.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 23:32:32 +0000 (01:32 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 23:32:32 +0000 (01:32 +0200)
commitafc3f4029a71266d9e105d7514a4f9dc35bc93bf
tree1c5bc38d3859888bf8161b9218937715944724ab
parentd862ba37a77979430593809d54d980292be18720
libgettextpo: Make function po_format_list() multithread-safe.

* autogen.sh (GNULIB_MODULES_LIBGETTEXTPO): Add 'once'.
* gettext-tools/libgettextpo/gettext-po.c: Include glthread/once.h.
(all_formats): New variable.
(all_formats_init): New function, extracted from po_format_list.
(all_formats_init_once): New variable.
(po_format_list): Invoke all_formats_init once.
autogen.sh
gettext-tools/libgettextpo/gettext-po.c