{"thread":{"id":"23151","subject":"[PATCH 0/2] Make some functions thread-safe","startedAt":"2010-03-23T17:31:01Z","lastAt":"2010-03-23T17:31:01Z","messageCount":1,"participants":["Fredrik Kuivinen"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"137651","messageId":"20100323173101.GA4218@fredrik-laptop","threadId":"23151","inReplyTo":null,"subject":"[PATCH 0/2] Make some functions thread-safe","fromName":"Fredrik Kuivinen","fromEmail":"frekui@gmail.com","sentAt":"2010-03-23T17:31:01Z","receivedAt":"2010-03-23T17:31:01Z","isPatch":true,"sender":{"key":"frekui@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13770967?v=4"},"body":"Here are two patches which makes xmalloc, xrealloc and sha1_to_hex\nthread-safe.\n\nI think the xmalloc/xrealloc patch is a clear improvement compared to\nthe current situation.\n\nThe sha1_to_hex patch is a bit complicated and is more of an RFC. It\nmakes use of pthread_once which is not (yet) implemented in our\npthreads win32 compatibility layer.\n\n---\n\nFredrik Kuivinen (2):\n      Make sha1_to_hex thread-safe\n      Make xmalloc and xrealloc thread-safe\n\n\n builtin/grep.c         |    2 +-\n builtin/pack-objects.c |    4 ++--\n git-compat-util.h      |    8 +++++++\n hex.c                  |   53 ++++++++++++++++++++++++++++++++++++++++++++++++\n preload-index.c        |    2 +-\n run-command.c          |    3 ++-\n wrapper.c              |   22 ++++++++++++++------\n 7 files changed, 83 insertions(+), 11 deletions(-)\n"}]}