![]() | ![]() | ![]() | as-atomic-operation | ![]() |
|
| form* => primary-value | [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:
Note that
See also
atomic-decf
atomic-delete
atomic-flush
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 | ![]() |