Liking cljdoc? Tell your friends :D

lockjaw.protocol


Lockjawcljprotocol

acquire!clj

(acquire! this)

Tries to get a lock for given component ID

Tries to get a lock for given component ID

acquire-by-name!clj

(acquire-by-name! this lock-name)

Converts passed name to ID and tries to aquire a lock for it

Converts passed name to ID and tries to aquire a lock for it

acquired-by-name?clj

(acquired-by-name? this lock-name)

Converts passed name to ID and checks if lock was already acquired

Converts passed name to ID and checks if lock was already acquired

acquired?clj

(acquired? this)

Checks if lock was already acquired

Checks if lock was already acquired

release!clj

(release! this)

Rleases the component lock

Rleases the component lock

release-all!clj

(release-all! this)

Releases all acquired locks

Releases all acquired locks

release-by-name!clj

(release-by-name! this lock-name)

Converts passed name to ID and releases it

Converts passed name to ID and releases it
source

with-lockcljmacro

(with-lock a-lock & body)

Run the code if a lock is obtained

Run the code if a lock is obtained
sourceraw docstring

with-lock!cljmacro

(with-lock! a-lock & body)

Like with-lock but release it after use

Like *with-lock* but release it after use
sourceraw docstring

with-named-lockcljmacro

(with-named-lock a-lock lock-name & body)

Run the code if a lock with the passed name is obtained

Run the code if a lock with the passed name is obtained
sourceraw docstring

with-named-lock!cljmacro

(with-named-lock! a-lock lock-name & body)

Like with-lock but release it after use

Like *with-lock* but release it after use
sourceraw docstring

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

× close