![]() | ![]() | ![]() | as-atomic-operation | ![]() |
| [Macro] |
Purpose
Execute forms as an atomic operation.
Package :portable-threads
Module :portable-threads
Arguments and values
primary-value | The first value returned by evaluating the last form |
Returns
The primary value returned by evaluating the last
Description
This macro provides atomicity in the following entities (when
the Common Lisp implementation does not support them directly):
Note that
See also
atomic-decf
atomic-decf&
atomic-delete
atomic-flush
atomic-incf
atomic-incf&
atomic-push
atomic-pushnew
atomic-pop
Example
Define an atomic
(defun atomic-nsorted-insert (&rest args) (declare (dynamic-extent args)) (as-atomic-operation (apply #'nsorted-insert args)))
The GBBopen Project
![]() | ![]() | ![]() | as-atomic-operation | ![]() |