[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Library initialization with gettext is not thread-safe
From: |
Vivien Kraus |
Subject: |
Library initialization with gettext is not thread-safe |
Date: |
Thu, 07 Jul 2022 20:30:28 +0200 |
User-agent: |
Evolution 3.42.1 |
Hello,
The Gettext manual section 4.10 Preparing Library Sources shows how to
lazily initialize gettext for a library. However, if multiple threads
call create_foo (in the manual example) before it has been initialized,
then there is a race condition. How do you solve it?
Best regards,
Vivien
- Library initialization with gettext is not thread-safe,
Vivien Kraus <=