Re: [PATCH] compat: Allow static initializer for pthreads on Windows
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 27, 2016, 06:21 UTC
- Message-ID
- <xmqqh97y8g74.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <67e38b43-0264-12f2-cca8-4b718ed7dc9d@kdbg.org>
Johannes Sixt <j6t@kdbg.org> writes:
>> As many codepaths may not even need access to the attributes, I >> doubt that would be a very productive direction to go. > > So, what is productive then? Pessimizing one (not exactly minor) platform?
Lazy on-demand initialization as needed, perhaps? The on-demand initialization mechanism may become no-op on some platforms that can do static initialization.