mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-12 15:27:36 +02:00
Update concurrent.md
This commit is contained in:
parent
164974550a
commit
b99702468c
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ Based on the procedure of the same name from Clojure.
|
||||||
|
|
||||||
(compare-and-set! atom oldval newval)
|
(compare-and-set! atom oldval newval)
|
||||||
|
|
||||||
Atomically changes the value of `atom` to `newval` but only if the value of `atom` is currently equal to `oldval`. Based on the procedure of the same name from Clojure. This is also commonly known as the compare-and-swap (CAS) atomic instruction.
|
Atomically changes the value of `atom` to `newval` but only if the value of `atom` is currently equal to `oldval`. This is also commonly known as the compare-and-swap (CAS) atomic instruction.
|
||||||
|
|
||||||
|
Based on the procedure of the same name from Clojure.
|
||||||
|
|
||||||
## Futures
|
## Futures
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue