![]() | ![]() | ![]() | atomic-flush | ![]() |
|
| place => old-place-value | [Macro] |
Purpose
As an atomic operation, set the value of
place to nil, and return the value place had prior to
being set.
Package :portable-threads
Module :portable-threads
Arguments and values
| place | A form which is suitable for use as a generalized reference | |
| old-place-value | An object |
Returns
The place value prior to being set to nil.
See also
as-atomic-operation
atomic-delete
atomic-pop
atomic-push
atomic-pushnew
Example
> list (1 2 3) > (atomic-flush list) (1 2 3) > list nil >
The GBBopen Project
![]() | ![]() | ![]() | atomic-flush | ![]() |