From: Johannes Sixt Date: Thu, 27 Oct 2016 06:29:34 GMT Subject: Re: [PATCH] compat: Allow static initializer for pthreads on Windows Message-ID: In-Reply-To: Am 27.10.2016 um 08:21 schrieb Junio C Hamano: > Johannes Sixt 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