Like incf and decf, but does the operation atomically.
system
atomic-decf place &optional delta => new-value
atomic-incf place &optional delta => new-value
place⇩ |
One of the specific set of places defined for low level atomic operations. |
delta⇩ |
A number, default value 1. |
new-value |
A number. |
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.
Unlike atomic-fixnum-decf and atomic-fixnum-incf, these macros can deal with any number.
atomic-fixnum-decf
atomic-fixnum-incf
low-level-atomic-place-p
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02