package containers
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/CCSemaphore/index.html
Module CCSemaphore
Source
Semaphores
A semaphore
acquire n s
blocks until get s >= n
, then atomically sets s := !s - n
.
with_acquire ~n s ~f
first acquires s
with n
units, calls f ()
, and then releases s
with n
units. Safely release the semaphore even if f ()
fails.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page