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
| Greg KH | [RFC] sample kobject implementation |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Paul E. McKenney | [PATCH RFC 2/9] RCU: Fix barriers |
| Joe Perches | [PATCH 011/148] include/asm-x86/bug.h: checkpatch cleanups - formatting only |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Linus Torvalds | Re: [GIT]: Networking |
| Jeff Garzik | Re: [PATCH] drivers/net: remove network drivers' last few uses of IRQF_SAMPLE_RANDOM |
