package xapi-stdext-threads

  1. Overview
  2. Docs
type t
type policy =
  1. | AlwaysRun
  2. | MaxCapacity of int * float option
  3. | WaitCondition of unit -> schedule
and schedule =
  1. | Now
  2. | Timeout of float
  3. | Indefinite
val scheduler_token : Mutex.t
val running_threads : unit -> int
val pending_threads : unit -> int
val set_policy : policy -> unit
include module type of Thread with type t := t
val self : unit -> t
val id : t -> int
val exit : unit -> unit
val kill : t -> unit
  • deprecated Not implemented, do not use
val delay : float -> unit
val join : t -> unit
val yield : unit -> unit
val wait_read : Unix.file_descr -> unit
  • deprecated This function no longer does anything
val wait_write : Unix.file_descr -> unit
  • deprecated This function no longer does anything
val wait_timed_read : Unix.file_descr -> float -> bool
val wait_timed_write : Unix.file_descr -> float -> bool
val select : Unix.file_descr list -> Unix.file_descr list -> Unix.file_descr list -> float -> Unix.file_descr list * Unix.file_descr list * Unix.file_descr list
val wait_pid : int -> int * Unix.process_status
val sigmask : Unix.sigprocmask_command -> int list -> int list
val wait_signal : int list -> int
val create : ?schedule:schedule -> ('a -> 'b) -> 'a -> t
OCaml

Innovation. Community. Security.