std::mutex bug: Windows handle growth

ASSI Stromeko@nexgo.de
Mon Mar 23 16:43:36 GMT 2026


Corinna Vinschen via Cygwin writes:
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71684
>
> Reading this bug report, wouldn't just defining
> _GTHREAD_USE_MUTEX_INIT_FUNC for Cygwin have the same effect?

Yes, but it would also use an initializer function instead of a static
initializer.  Whether that would have any noticeable performance impact
is unclear, but w.r.t. POSIX it's clear that it's no problem to use a
static initializer, just unspecified whether the destructor is trivial
or not.  These two issues should not be mixed up in one configuration
item IMHO.



Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for KORG EX-800 and Poly-800MkII V0.9:
http://Synth.Stromeko.net/Downloads.html#KorgSDada


More information about the Cygwin mailing list