[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strage cthread behavior
From: |
Marcus Brinkmann |
Subject: |
Re: strage cthread behavior |
Date: |
Sun, 30 Jun 2002 19:17:19 +0200 |
User-agent: |
Mutt/1.4i |
On Sun, Jun 30, 2002 at 07:35:55AM +0400, Igor Shmukler wrote:
> > libio is thread safe, though, and if he is usig a recent binary system
> > (post ABI change), he will use libio and not stdio.
>
> POSIX does not guarantee that printf is thread-safe
Why do you think so? POSIX 1003.1 defines that all functions are
thread-safe unless stated otherwise, and I couldn't find anything in the
specification of printf that it isn't thread-safe.
> (although we are talking
> cthreads which are not part of POSIX either) thus it is always is a good idea
> to not rely on printf being thread safe.
In any way, the GNU system makes this guarantee.
Thanks,
Marcus
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann GNU http://www.gnu.org marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de
Re: strage cthread behavior, Manu Valderrama, 2002/06/30