From ceb8cacd6d2a4189de0db2ee46d45217511c69be Mon Sep 17 00:00:00 2001 From: Daniel Drake Date: Mon, 19 Apr 2010 19:31:12 -0300 Subject: [PATCH] Document that fd set contents are an internal implementation detail (#36) --- libusb/io.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libusb/io.c b/libusb/io.c index 387be4c..1379eb3 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -600,6 +600,13 @@ while (user_has_not_requested_exit) * these moments occur. This means that you need to adjust your * poll()/select() timeout accordingly. * + * libusb provides you with a set of file descriptors to poll and expects you + * to poll all of them, treating them as a single entity. The meaning of each + * file descriptor in the set is an internal implementation detail, + * platform-dependent and may vary from release to release. Don't try and + * interpret the meaning of the file descriptors, just do as libusb indicates, + * polling all of them at once. + * * In pseudo-code, you want something that looks like: \code // initialise libusb -- 2.7.4