All Manuals > LispWorks® User Guide and Reference Manual > 47 The SYSTEM Package

atomic-decf

atomic-incf Macros

Summary

Like incf and decf, but does the operation atomically.

Package

system

Signatures

atomic-decf place &optional delta => new-value

atomic-incf place &optional delta => new-value

Arguments
place
One of the specific set of places defined for low level atomic operations.
delta
A number, default value 1.
Values
new-value
A number.
Description

The macro atomic-decf is like decf and atomic-incf is like incf, decreasing or increasing the value in place by delta, except that they are guaranteed atomic for a suitable place.

place must be one of the places described in 19.13.1 Low level atomic operations, or expand to one of them.

Notes

Unlike atomic-fixnum-decf and atomic-fixnum-incf, these macros can deal with any number.

See also

atomic-fixnum-decf
atomic-fixnum-incf
low-level-atomic-place-p


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02