~ubuntu-branches/ubuntu/trusty/ocamlnet/trusty

« back to all changes in this revision

Viewing changes to src/netsys/netsys_pollset_posix.mli

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu
  • Date: 2011-09-02 14:12:33 UTC
  • mfrom: (18.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110902141233-zbj0ygxb92u6gy4z
Tags: 3.4-1
* New upstream release
  - add a new NetcgiRequire directive to ease dependency management
    (Closes: #637147)
  - remove patches that were applied upstream:
    + Added-missing-shebang-lines-in-example-shell-scripts
    + Try-also-ocamlc-for-POSIX-threads

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(* $Id: netsys_pollset_posix.mli 1202 2008-09-04 22:11:24Z gerd $ *)
 
2
 
 
3
(** Pollsets for POSIX operating systems *)
 
4
 
 
5
open Netsys_pollset
 
6
 
 
7
val poll_based_pollset : unit -> pollset
 
8
  (** Returns a poll set whose implementation is based on the [poll] system
 
9
      call. 
 
10
 
 
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
 
14
      WinSock layer.)
 
15
   *)
 
16
 
 
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.
 
21
   *)
 
22
 
 
23
 
 
24
(* TODO: pollsets for epoll, kqueue, /dev/poll etc. *)