This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Thread-safe libio
- To: "Alain Magloire" <alain@qnx.com>
- Subject: Re: Thread-safe libio
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 15 May 1999 15:51:44 -0700
- Cc: libstdc++@sourceware.cygnus.com
- References: <199905152151.RAA00365@qnx.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
"Alain Magloire" <alain@qnx.com> writes:
> If I remember correctly, f{try,un,}lockfile() were introduce *with/for*
> threading by posix. I did not see any OS that provides flockfile()
> whitout support for PThreads.
>
> flockfile provides opaque reference counting.
First, flockfile was introduced in POSIX but not necessarily for
PThreads. Second, I was talking about the interface which is
available in libio already. It would be a big mistake to introduce
yet another interface. How the flockfile functions actually must be
implemented depends on the platform.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------