package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.1.tar.gz
md5=d84e09c5d0abc501aa17cd502e31a038
sha512=8b832f4ada6035e80d81be0cfb7bdffb695ec67d465ed6097a144019e2b8a8f909095e78019c3da2d8181cc3cd730cd48f7519e87d3162442562103b7f36aabb

doc/containers.thread/CCThread/Barrier/index.html

Module CCThread.BarrierSource

Sourcetype t

Barrier, used to synchronize threads

Sourceval create : unit -> t

Create a barrier.

Sourceval reset : t -> unit

Reset to initial (non-triggered) state.

Sourceval wait : t -> unit

wait b waits for barrier b to be activated by activate b. All threads calling this wait until activate b is called. If b is already activated, wait b does nothing.

Sourceval activate : t -> unit

activate b unblocks all threads that were waiting on b.

Sourceval activated : t -> bool

activated b returns true iff activate b was called, and reset b was not called since. In other words, activated b = true means wait b will not block.

OCaml

Innovation. Community. Security.