infix ⚛=
1 | class Scalar |
1.1 | (Scalar) infix ⚛= |
2 | class atomicint |
2.1 | (atomicint) infix ⚛= |
Documentation for infix ⚛=
assembled from the following types:
class Scalar
From Scalar
(Scalar) infix ⚛=
multi sub infix:<⚛=>( is rw, )
Performs an atomic assignment of $value
into the Scalar
$target
. The ⚛=
operator ensures that any required barriers are performed such that the changed value will be "published" to other threads.
class atomicint
From atomicint
(atomicint) infix ⚛=
multi sub infix:<⚛=>(atomicint $ is rw, int )multi sub infix:<⚛=>(atomicint $ is rw, Int() )
Performs an atomic assignment to a native integer, which may be in a lexical, attribute, or native array element. If $value
cannot unbox to a 64-bit native integer due to being too large, an exception will be thrown. If the size of atomicint
is only 32 bits, then an out of range $value
will be silently truncated. The ⚛=
operator ensures that any required barriers are performed such that the changed value will be "published" to other threads.