Module Luv.Barrier

Barriers.

See Barriers in libuv.

type t
val init : int -> (t, Error.t) Stdlib.result

Allocates and initializes a barrier.

Binds uv_barrier_init. See pthread_barrier_init(3p).

val destroy : t -> unit

Cleans up a barrier.

Binds uv_barrier_destroy. See pthread_barrier_destroy(3p).

val wait : t -> bool

Waits on a barrier.

Binds uv_barrier_wait. See pthread_barrier_wait(3p).