class type pollset =
method find :
Unix.file_descr -> Netsys_posix.poll_req_events
Not_foundif the descriptor is not in the set.
method add :
Unix.file_descr -> Netsys_posix.poll_req_events -> unit
method remove :
Unix.file_descr -> unit
method wait :
(Unix.file_descr * Netsys_posix.poll_req_events *
There is no guarantee that the list is complete.
It is unspecified how the set reacts on descriptors that became
invalid (i.e. are closed) while being member of the set. The set
implementation is free to silently disregard such descriptors,
or to report them as invalid. It is strongly recommended to
remove descriptors before closing them.
method dispose :
unit -> unit
cancel_waitthe required OS resources are automatically allocated again. Only for
cancel_waitit is ensured that the disposal remains in effect.
method cancel_wait :
bool -> unit
When the bit is
wait invocation will immediately
time out. It is allowed to set the cancel bit from another thread,
and when it becomes
true, a parallel running
see that and timeout. Note that there is no
protection against race conditions: It is possible that
returns events that are found at the same time the cancellation
is carried out, i.e. you cannot rely on that the list returned
wait is empty.
This is the only method of a pollset that is allowed to be called
from a different thread. If not supported on a platform this method