[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: io_select support for netfs
From: |
Thomas Bushnell, BSG |
Subject: |
Re: io_select support for netfs |
Date: |
29 Jul 2004 13:16:02 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
Bas Wijnen <b.wijnen@phys.rug.nl> writes:
> Even without network you should be careful. If you have a
> multithreaded program, or a source which is read by multiple
> processes, or some other reason the state can have changed without
> the selecting thread doing anything, you may not be able to read any
> data after a successful select. If you want to prevent blocking,
> you should use O_NONBLOCK, even if you use select.
That's a different category of care. I was speaking about care in the
implementation of select; you're speaking about care in the use of select.
Thomas