Module CCThread

module CCThread: sig .. end

Threads

status: unstable
Since 0.13


type t = Thread.t 
val spawn : (unit -> 'a) -> t
spawn f creates a new thread that runs f ()
val spawn1 : ('a -> 'b) -> 'a -> t
spawn1 f x is like spawn (fun () -> f x).
Since 0.16
val spawn2 : ('a -> 'b -> 'c) -> 'a -> 'b -> t
spawn2 f x y is like spawn (fun () -> f x y).
Since 0.16
val detach : (unit -> 'a) -> unit
detach f is the same as ignore (spawn f)
module Arr: sig .. end
Array of threads

Single-Use Barrier


module Barrier: sig .. end