Liking cljdoc? Tell your friends :D

catacumba.impl.atomic

A clojure idiomatic wrapper for JDK atomic types.

A clojure idiomatic wrapper for JDK atomic types.
raw docstring

booleanclj

(boolean v)

Create an instance of atomic boolean.

Create an instance of atomic boolean.
sourceraw docstring

IAtomiccljprotocol

A common abstraction for atomic types.

A common abstraction for atomic types.

compare-and-set!clj

(compare-and-set! _ v v')

Perform the CAS operation.

Perform the CAS operation.

eventually-set!clj

(eventually-set! _ v)

Eventually set a new value.

Eventually set a new value.

getclj

(get _)

Get the current value.

Get the current value.

get-and-set!clj

(get-and-set! _ v)

Set a new value and return the previous one.

Set a new value and return the previous one.

set!clj

(set! _ v)

Set a new value.

Set a new value.
sourceraw docstring

IAtomicNumbercljprotocol

A common abstraction for number atomic types.

A common abstraction for number atomic types.

dec-and-get!clj

(dec-and-get! _)

Decrements the value and return it.

Decrements the value and return it.

get-and-add!clj

(get-and-add! _ v)

Adds a delta and return the previous value.

Adds a delta and return the previous value.

get-and-dec!clj

(get-and-dec! _)

Decrements the value and return the previous one.

Decrements the value and return the previous one.

get-and-inc!clj

(get-and-inc! _)

Increments the value and returns the previous one.

Increments the value and returns the previous one.

inc-and-get!clj

(inc-and-get! _)

Increments the value and return it.

Increments the value and return it.
sourceraw docstring

longclj

(long)
(long n)

Create an instance of atomic long with optional initial value. If it is not provided, 0 will be the initial value.

Create an instance of atomic long with optional
initial value. If it is not provided, `0` will be
the initial value.
sourceraw docstring

refclj

(ref v)

Create an instance of atomic reference.

Create an instance of atomic reference.
sourceraw docstring

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

× close