]> Savannah Git Hosting - gnulib.git/commit
pthread-once: Fix race in Cygwin workaround implementation.
authorBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 13:25:30 +0000 (15:25 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 31 May 2024 13:25:30 +0000 (15:25 +0200)
commit659f0def364d9d08759fe30173fc4a113badc248
tree2d8a32453e91a9922c9c6116c0a2dcab193b9655
parentd37eb8d07a9bc3d33b3d1a4c0acc7a12e3dbf683
pthread-once: Fix race in Cygwin workaround implementation.

* lib/pthread-once.c (pthread_once): Test the 'done' word after
incrementing num_threads. Make sure to invoke pthread_mutex_destroy
only once.
ChangeLog
lib/pthread-once.c