1995-10-30 02:21:56 -08:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Caml Special Light *)
|
|
|
|
(* *)
|
|
|
|
(* Xavier Leroy, projet Cristal, INRIA Rocquencourt *)
|
|
|
|
(* *)
|
|
|
|
(* Copyright 1995 Institut National de Recherche en Informatique et *)
|
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
|
|
|
(* Module [Thread]: user-level lightweight threads *)
|
|
|
|
|
|
|
|
type t
|
|
|
|
val new : ('a -> 'b) -> 'a -> t
|
|
|
|
val exit : unit -> unit
|
|
|
|
val self : unit -> t
|
|
|
|
val kill : t -> unit
|
|
|
|
val sleep : unit -> unit
|
|
|
|
val wakeup : t -> unit
|
|
|
|
val wait_descr : Unix.file_descr -> unit
|
|
|
|
val wait_inchan : in_channel -> unit
|
|
|
|
val delay: float -> unit
|
|
|
|
|
1995-11-14 09:11:31 -08:00
|
|
|
(*--*)
|
1995-10-30 02:21:56 -08:00
|
|
|
|
1995-11-14 09:11:31 -08:00
|
|
|
val critical_section: bool ref
|