chiark / gitweb /
poll: Document reentrancy restriction on before()
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 21 Sep 2014 14:02:40 +0000 (15:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 29 Sep 2014 15:01:05 +0000 (16:01 +0100)
commite9c39cc8b7fef143123ea632a3d43b886c03750f
tree72368deed5bca5a90ac909bc172fd85f196aa685
parentf074b927bd86a90b4b9114b4d019a0002b7782ca
poll: Document reentrancy restriction on before()

If the before() callback might modify the wanted fds or timeouts of
other poll users, the loop over poll users in run() might produce
wrong answers.

Therefore, document that this is not permitted.  (All of the existing
before() implementations are indeed fine.)

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
secnet.h