bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getline


From: Paul Eggert
Subject: Re: getline
Date: Sun, 17 Jul 2005 22:40:59 -0700
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Simon Josefsson <address@hidden> writes:

> 5. I have no idea whether using flockfile/funlockfile is appropriate.

I'd say it's appropriate, but only if flockfile/funlockfile exist.
They don't exist on all platforms.  POSIX says they're optional;
they're part of the Thread Safe Functions extension.  On platforms
where they don't exist, you can define them to be no-ops, as
unlocked-io does.  Applications that are using unlocked-io should also
make them no-ops.

>    getndelim2 does not appear to do any locking, though.

Correct.  Currently it's used only by single-threaded apps.  It could
be upgraded to multithreaded, using the same technique that you are
using for getdelim.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]