Liking cljdoc? Tell your friends :D

flowgraph.utils


lock-formclj

(lock-form locking-sym coordination-syms [head & [bindings & body] :as form])

Produces (locking ~locking-sym ~form), except with some optimizations in the case of when-lets to minimize locking extent.

Produces (locking ~locking-sym ~form), except with some optimizations in the case of when-lets
to minimize locking extent.
sourceraw docstring

locking-sym-on-coordinationclj

(locking-sym-on-coordination locking-sym coordination-syms form)

Inefficient technique, but easy (?) to understand. Give it a symbol to use for synchronization/locking, a set of symbols whose occurrence must occur within the synchronized/locked block, and a form. It will return the same form with a minimally-intrusive locking form added. Performs a small re-writing trick in the case of when-lets.

Inefficient technique, but easy (?) to understand. Give it a symbol to use
for synchronization/locking, a set of symbols whose occurrence must occur within
the synchronized/locked block, and a form. It will return the same form with a
minimally-intrusive locking form added. Performs a small re-writing trick in the
case of when-lets.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close