Re: What's cooking in git.git (Apr 2010, #03; Wed, 07)
- From
Fredrik Kuivinen <frekui@gmail.com>
- Date
- Apr 8, 2010, 09:01 UTC
- Message-ID
- <o2u4c8ef71004080201pdbdc7aa8j99500d7643c278c9@mail.gmail.com>
- In-Reply-To
- <7vwrwi78t7.fsf@alter.siamese.dyndns.org>
On Thu, Apr 8, 2010 at 08:33, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Johannes Sixt <j.sixt@viscovery.net> 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