diff options
| author | Ivan Maidanski <ivmai@mail.ru> | 2011-10-21 12:23:03 +0400 |
|---|---|---|
| committer | Ivan Maidanski <ivmai@mail.ru> | 2011-11-11 16:36:16 +0400 |
| commit | 18ded03a82b187128679c2b8d87892903201c3a5 (patch) | |
| tree | 7ad5b472ad0de8a5c90c282f37bebbf058470ad8 /doc | |
| parent | 0709102bf46aca2fe09d9ecc3db4a57266c25326 (diff) | |
| download | libatomic_ops-18ded03a82b187128679c2b8d87892903201c3a5.tar.gz | |
Add FIXMEs to add AO_fetch_compare_and_swap primitives
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/README.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/README.txt b/doc/README.txt index 26a4f7f..348247d 100644 --- a/doc/README.txt +++ b/doc/README.txt @@ -100,6 +100,9 @@ int compare_and_swap(volatile AO_t * addr, AO_t old_val, AO_t new_val) Atomically compare *addr to old_val, and replace *addr by new_val if the first comparison succeeds. Returns nonzero if the comparison succeeded and *addr was updated. +AO_t fetch_compare_and_swap(volatile AO_t * addr, AO_t old_val, AO_t new_val) + Atomically compare *addr to old_val, and replace *addr by new_val + if the first comparison succeeds; returns the original value of *addr. AO_TS_VAL_t test_and_set(volatile AO_TS_t * addr) Atomically read the binary value at *addr, and set it. AO_TS_VAL_t is an enumeration type which includes two values AO_TS_SET and |
