Re: [PATCH 0/14] fork/exec removal series

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: Johannes Schindelin <Johannes.Schindelin@...>, Johannes Sixt <johannes.sixt@...>, <gitster@...>, <git@...>
Date: Sunday, October 14, 2007 - 3:12 am

On Sun, Oct 14, 2007 at 02:58:57AM +0000, Shawn O. Pearce wrote:
=20
=20
een=20

  Yeah that, and the fact that many of the git modules aren't
thread-safe (some modules have static buffers strbuf's or caching
variables) and should be used with care.

  The trivial way is to add a __thread keyword to make them TLS
variables, though, it's not really a step in the direction of
portability, and last time I looked at it, mingw didn't had TLS support,
not sure if msys has. Though, if Msys has, it's worth using, and we
could require that targets using the fancy pthread thingy should also
have some fancy TLS, or use fork().

  Portability for such issues, would be to use pthread_key_* and
pthread_{get,set}specific, and those are a hell of a sucky API.

--=20
=C2=B7O=C2=B7  Pierre Habouzit
=C2=B7=C2=B7O                                                madcoder@debia=
n.org
OOO                                                http://www.madism.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/14] fork/exec removal series, Johannes Sixt, (Sat Oct 13, 4:06 pm)
Re: [PATCH 0/14] fork/exec removal series, Shawn O. Pearce, (Sat Oct 13, 10:11 pm)
Re: [PATCH 0/14] fork/exec removal series, Johannes Schindelin, (Sat Oct 13, 10:50 pm)
Re: [PATCH 0/14] fork/exec removal series, Shawn O. Pearce, (Sat Oct 13, 10:58 pm)
Re: [PATCH 0/14] fork/exec removal series, Pierre Habouzit, (Sun Oct 14, 3:12 am)
Re: [PATCH 0/14] fork/exec removal series, Johannes Schindelin, (Sun Oct 14, 1:09 pm)
Re: [PATCH 0/14] fork/exec removal series, Pierre Habouzit, (Sun Oct 14, 3:17 am)
Re: [PATCH 0/14] fork/exec removal series, Pierre Habouzit, (Sun Oct 14, 3:28 am)
Re: [PATCH 0/14] fork/exec removal series, Andreas Ericsson, (Sun Oct 14, 5:10 am)
Re: [PATCH 01/14] Change git_connect() to return a struct ch..., Johannes Schindelin, (Sat Oct 13, 8:57 pm)
Re: [PATCH 01/14] Change git_connect() to return a struct ch..., Johannes Schindelin, (Sun Oct 14, 1:10 pm)