Simon Josefsson <[EMAIL PROTECTED]> 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.


_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to