[PATCH v2] util: workaround libxml2 lack of thread safe initialization

2025-06-23 Thread Daniel P . Berrangé via Devel
From: Daniel P. Berrangé The main XML parser code global initializer historically had a mutex protecting it, and more recently uses a pthread_once. The RelaxNG code, however, relies on two other global initializers that are not thread safe, just relying on setting an integer "initialized" flag.

Re: [PATCH v2] util: workaround libxml2 lack of thread safe initialization

2025-06-23 Thread Peter Krempa via Devel
On Mon, Jun 23, 2025 at 17:17:06 +0100, Daniel P. Berrangé via Devel wrote: > From: Daniel P. Berrangé > > The main XML parser code global initializer historically had a mutex > protecting it, and more recently uses a pthread_once. The RelaxNG > code, however, relies on two other global initializ