From: "Michał Nazarewicz" <mina86@tlen.pl>
To: Randi Botse <nightdecoder@gmail.com>
Cc: vinit dhatrak <vinit.dhatrak@gmail.com>,
linux-c-programming@vger.kernel.org
Subject: Re: thread: reentrant question
Date: Sat, 26 Dec 2009 11:42:20 +0100 [thread overview]
Message-ID: <705f7e740912260242o5b45c1ccxd3f7c8709107fe0a@mail.gmail.com> (raw)
In-Reply-To: <34e1241d0912252132y48945feek8c803ccb8625cbbc@mail.gmail.com>
2009/12/26 Randi Botse <nightdecoder@gmail.com>:
> Hi Vinit,
>
> So, does this function actually reentrant when free() has not been
> called?, thanks for your explanation.
This function is reentrant both when free(3) is called and when
free(3) is not called (but it introduce memory leaks in the second
case).
As I've written before, the only issue may be with printf(3) as output
from various threads may get mixed together.
next prev parent reply other threads:[~2009-12-26 10:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-24 18:41 thread: reentrant question Randi Botse
2009-12-24 19:30 ` vinit dhatrak
2009-12-26 5:32 ` Randi Botse
2009-12-26 10:42 ` Michał Nazarewicz [this message]
2009-12-26 21:23 ` vinit dhatrak
2009-12-27 13:12 ` Randi Botse
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=705f7e740912260242o5b45c1ccxd3f7c8709107fe0a@mail.gmail.com \
--to=mina86@tlen.pl \
--cc=linux-c-programming@vger.kernel.org \
--cc=nightdecoder@gmail.com \
--cc=vinit.dhatrak@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).