From: Fredrik Kuivinen Date: Thu, 08 Apr 2010 09:01:05 GMT Subject: Re: What's cooking in git.git (Apr 2010, #03; Wed, 07) Message-ID: In-Reply-To: <7vwrwi78t7.fsf@alter.siamese.dyndns.org> On Thu, Apr 8, 2010 at 08:33, Junio C Hamano wrote: > Johannes Sixt writes: >> BTW, are there Unices that do not have a recursive mutex? > > PTHREAD_MUTEX_RECURSIVE is not marked as optional in any way, so I would > imagine an implementation that lacks it would say NO_PTHREADS in the > Makefile. > > Cf. > >  http://www.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html For some reason I looked at Issue 6 of the standard (a previous version, released in 2004). In that version pthread_mutexattr_settype and PTHREAD_MUTEX_RECURSIVE are optional. See http://www.opengroup.org/onlinepubs/009695399/basedefs/pthread.h.html However, it is probably best to just ignore the issue for now until some platform appears where pthreads is available but not recursive mutexes. - Fredrik