LispWorks User Guide and Reference Manual > 40 The SYSTEM Package

NextPrevUpTopContentsIndex

atomic-decf

atomic-incf

Macros
Summary

Like incf and decf , but does the operation atomically.

Package

system

Signature

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 , except that they are guaranteed atomic for a suitable place.

place must be one of the places described in 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 - 22 Dec 2009

NextPrevUpTopContentsIndex