Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » Thing » AtomicInt » store
next | previous | forward | backward | up | index | toc

store -- store the value of an atomic integer

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:

  • store(AtomicInt,ZZ)

For the programmer

The object store is a method function.


The source of this document is in Macaulay2Doc/doc_atomic.m2:209:0.