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

with-modification-change Macro

Summary

Provides a way to check whether there was any "modification" during execution of a body of code.

Package

system

Signature

with-modification-change modification-place &body body

Arguments
modification-place
A place as defined in Common Lisp which can receive a fixnum.
body
Lisp code.
Description

The macro with-modification-change, together with the macro with-modification-check-macro, provides a way for a body of code body to execute and check whether there was any "modification" during this execution, where modification is execution of some other piece of code.

modification-place must be initialized to the fixnum 0 before being used, and must not be modified by any code except with-modification-change.

See 19.13.2 Aids for implementing modification checks for the full description and an example.

Notes

modification-place does not need to be one of the places defined for low level atomic operations.

See also

with-modification-check-macro


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