git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C HamanoNext: Tor Arntsen
Message 4 of 18 in “What's cooking in git.git (Apr 2010, #03; Wed, 07)”
  1. Junio C HamanoApr 8, 2010
  2. Johannes SixtApr 8, 2010
  3. Junio C HamanoApr 8, 2010
  4. Fredrik KuivinenApr 8, 2010
  5. Tor ArntsenApr 8, 2010
  6. Tor ArntsenApr 8, 2010
  7. Jeff KingApr 8, 2010
  8. nd/setupJonathan Nieder, Apr 8, 2010
  9. Jeff KingApr 9, 2010
  10. Take it easy on unallowed access to non-existent repositoryNguyễn Thái Ngọc Duy, Apr 11, 2010
  11. Sverre RabbelierApr 11, 2010
  12. Nguyen Thai Ngoc DuyApr 11, 2010
  13. Sverre RabbelierApr 11, 2010
  14. Nguyen Thai Ngoc DuyApr 11, 2010
  15. Nguyen Thai Ngoc DuyApr 9, 2010
  16. Jonathan NiederApr 9, 2010
  17. Nguyen Thai Ngoc DuyApr 9, 2010
  18. Nguyen Thai Ngoc DuyApr 11, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.