From d9861176304476789ce2d3f9189a1f10176148ab Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 21 Oct 2011 13:48:59 +0400 Subject: [PATCH] Document atomic 'and', 'xor' primitives in doc/README.txt --- doc/README.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/README.txt b/doc/README.txt index 88445c0..26a4f7f 100644 --- a/doc/README.txt +++ b/doc/README.txt @@ -90,8 +90,12 @@ AO_t fetch_and_add1(volatile AO_t *addr) Equivalent to AO_fetch_and_add(addr, 1). AO_t fetch_and_sub1(volatile AO_t *addr) Equivalent to AO_fetch_and_add(addr, (AO_t)(-1)). -void or(volatile AO_t *addr, AO_t incr) - Atomically or incr into *addr. +void and(volatile AO_t *addr, AO_t value) + Atomically 'and' value into *addr. +void or(volatile AO_t *addr, AO_t value) + Atomically 'or' value into *addr. +void xor(volatile AO_t *addr, AO_t value) + Atomically 'xor' value into *addr. 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 -- 2.7.4