package luv

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

Barriers.

See Barriers in libuv.

type t
val init : int -> (t, Error.t) Result.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).

OCaml

Innovation. Community. Security.