1
(* $Id: netsys_pollset_posix.mli 1202 2008-09-04 22:11:24Z gerd $ *)
3
(** Pollsets for POSIX operating systems *)
7
val poll_based_pollset : unit -> pollset
8
(** Returns a poll set whose implementation is based on the [poll] system
11
Win32: On Win32 this implementation works, but only for sockets,
12
and is not cancellable in multi-threaded programs. (This is a
13
restriction because we have to map it to the [select] call of the
17
val reset : unit -> unit
18
(** This module may keep some global state. This function resets this
19
state. As the state may contain file descriptors, it is advisable
20
to reset after calling [fork] to free these descriptors.
24
(* TODO: pollsets for epoll, kqueue, /dev/poll etc. *)