Re: dev-tech-nspr Digest, Vol 39, Issue 8
Andy Gocke <[email protected]> Sun, 14 Jun 2009 16:08:42 -0500
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On Jun 14, 2009, at 2:00 PM, [email protected] wrote: > The specification for PR_Poll https://developer.mozilla.org/en/PR_Poll > says that the fd member of the PRPollDesc structure "can be set to > NULL > to indicate to PR_Poll that this PRFileDesc object should be ignored." > This is exactly analogous to Unix's poll() function, whose pollfd > structure > also has a member named fd. According to the poll.html web page cited > above, "If the value of fd is less than 0, events shall be ignored, > and > revents shall be set to 0 in that entry on return from poll()." So, > both > poll() and PR_Poll() provide a way to "ignore" structures in the > array. I somehow missed this on my first way through - thank you, I will do just that. Andy Gocke