Statement macro
Performs an atomic test-and-set operation.
conditional-update!(local-name = place)
body
[success success-expr]
[failure failure-expr]
end
threads
threads
This extended form of conditional-update! additionally accepts a place that has the syntax of a call to a function. This extended form for conditional-update! is analogous to that for :=. In this case, if the place appears syntactically as
name(arg1, ... argn)
The macro expands into this call: