Git development
 help / color / mirror / Atom feed
* [PATCH 0/2] Make some functions thread-safe
@ 2010-03-23 17:31 Fredrik Kuivinen
  0 siblings, 0 replies; only message in thread
From: Fredrik Kuivinen @ 2010-03-23 17:31 UTC (permalink / raw)
  To: git; +Cc: Johannes Sixt, Junio C Hamano, Shawn O. Pearce

Here are two patches which makes xmalloc, xrealloc and sha1_to_hex
thread-safe.

I think the xmalloc/xrealloc patch is a clear improvement compared to
the current situation.

The sha1_to_hex patch is a bit complicated and is more of an RFC. It
makes use of pthread_once which is not (yet) implemented in our
pthreads win32 compatibility layer.

---

Fredrik Kuivinen (2):
      Make sha1_to_hex thread-safe
      Make xmalloc and xrealloc thread-safe


 builtin/grep.c         |    2 +-
 builtin/pack-objects.c |    4 ++--
 git-compat-util.h      |    8 +++++++
 hex.c                  |   53 ++++++++++++++++++++++++++++++++++++++++++++++++
 preload-index.c        |    2 +-
 run-command.c          |    3 ++-
 wrapper.c              |   22 ++++++++++++++------
 7 files changed, 83 insertions(+), 11 deletions(-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-03-23 17:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-23 17:31 [PATCH 0/2] Make some functions thread-safe Fredrik Kuivinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox