Macaulay2 » Documentation
Packages » Macaulay2Doc :: store
next | previous | forward | backward | up | index | toc

store -- store the value of an atomic integer

Synopsis

Description

The value of y is stored in x and null is returned. This operation occurs atomically and is thread safe.

i1 : x = new AtomicInt

o1 = 0

o1 : AtomicInt
i2 : store(x, 5)
i3 : x

o3 = 5

o3 : AtomicInt

Ways to use store :

For the programmer

The object store is a method function.