Macro: SB-EXT:DEFCAS¶
Analogous to short-form DEFSETF. Defines FUNCTION as responsible for compare-and-swap on places accessed using ACCESSOR. LAMBDA-LIST must correspond to the lambda-list of the accessor.
Note that the system provides no automatic atomicity for CAS expansions resulting from DEFCAS, nor can it verify that they are atomic: it is up to the user of DEFCAS to ensure that the function specified is atomic.
EXPERIMENTAL: Interface subject to change.
Lambda list¶
(sb-impl::accessor sb-impl::lambda-list function &optional sb-impl::docstring)