Macaulay2 » Documentation
Packages » Macaulay2Doc :: new ZZ from AtomicInt
next | previous | forward | backward | up | index | toc

new ZZ from AtomicInt -- load an atomic integer

Synopsis

Description

This loads the value of the atomic integer x. This operation occurs atomically and is thread safe.

i1 : x = new AtomicInt

o1 = 0

o1 : AtomicInt
i2 : x += 5

o2 = 0
i3 : new ZZ from x

o3 = 5

Ways to use this method: