package containers-thread
An extension of containers for threading
Install
Dune Dependency
Authors
Maintainers
Sources
v3.1.tar.gz
md5=18f35ec3794803f5a4f95254f313c764
sha512=090e33705ffb0f77f71f881f78b51d909778bf41afad32339acac21ddbd5f6947b4ebff754148331f9263a544a6000d7f7412d5758e1835fbe84490240b671de
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