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>
Thu, 2 Oct 2014 15:31:13 +0000 (16:31 +0100)
commite2e19438e0d4d68d8166e19f0f5086941271988d
treef57a703ca96620b6adf4a34b2c359fa920b76352
parent8140fd3f88d666ef1ed43e89cf643b653fc032bd
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