Re: [PATCH] compat: Allow static initializer for pthreads on Windows
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Oct 27, 2016, 06:29 UTC
- Message-ID
- <b5084894-0f1e-2a32-79fb-74ce977b3a92@kdbg.org>
- In-Reply-To
- <xmqqh97y8g74.fsf@gitster.mtv.corp.google.com>
Am 27.10.2016 um 08:21 schrieb Junio C Hamano:
Show 10 quoted lines
> 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.
This is the pessimization that I am talking about. I would not mind at all if it were only for the attribute subsystem, but the proposed patch would pessimize *all* uses of pthread_mutex_lock.
-- Hannes