package picos_io

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Externally reference counted file descriptors.

val report_leaks : bool Stdlib.ref

If !report_leaks = true then undisposed file descriptors will be reported at exit.

include Picos_aux_rc.S with type Resource.t = Unix.file_descr
module Resource : sig ... end
type t
val create : ?dispose:bool -> Resource.t -> t
val unsafe_get : t -> Resource.t
val incr : t -> unit
val decr : ?close:bool -> t -> unit
type info = {
  1. resource : Resource.t;
  2. count : int;
  3. closed : bool;
  4. dispose : bool;
  5. bt : Stdlib.Printexc.raw_backtrace;
}
val infos : unit -> info Stdlib.Seq.t
OCaml

Innovation. Community. Security.