From: Fredrik Kuivinen <frekui@gmail.com>
To: git@vger.kernel.org
Cc: Johannes Sixt <j6t@kdbg.org>, Junio C Hamano <gitster@pobox.com>,
"Shawn O. Pearce" <spearce@spearce.org>
Subject: [PATCH 0/2] Make some functions thread-safe
Date: Tue, 23 Mar 2010 18:31:01 +0100 [thread overview]
Message-ID: <20100323173101.GA4218@fredrik-laptop> (raw)
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(-)
reply other threads:[~2010-03-23 17:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100323173101.GA4218@fredrik-laptop \
--to=frekui@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=spearce@spearce.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox