Like decf and incf, but does the operation atomically.
system
atomic-fixnum-decf place &optional fixnum-delta => new-value
atomic-fixnum-incf place &optional fixnum-delta => new-value
place⇩ |
One of the specific set of places defined for low level atomic operations. |
fixnum-delta⇩ |
A fixnum, default value 1. |
new-value |
A fixnum. |
The macro atomic-fixnum-decf
is like decf (for fixnums only) and atomic-fixnum-incf
is like incf (for fixnums only), 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.
Both the value in place and fixnum-delta must be fixnums. The arithmetic is done without checking for overflow.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:31:02