|
NAMEck_pr_cas_ptr ,
ck_pr_cas_ptr_value ,
ck_pr_cas_ptr_2 ,
ck_pr_cas_ptr_2_value ,
ck_pr_cas_double ,
ck_pr_cas_double_value ,
ck_pr_cas_char ,
ck_pr_cas_char_value ,
ck_pr_cas_uint ,
ck_pr_cas_uint_value ,
ck_pr_cas_int ,
ck_pr_cas_int_value ,
ck_pr_cas_64_2 ,
ck_pr_cas_64_2_value ,
ck_pr_cas_64 ,
ck_pr_cas_64_value ,
ck_pr_cas_32 ,
ck_pr_cas_32_value ,
ck_pr_cas_16 ,
ck_pr_cas_16_value ,
ck_pr_cas_8 , ck_pr_cas_8_value
—
atomic compare-and-swap operations
LIBRARYConcurrency Kit (libck, -lck)SYNOPSIS#include <ck_pr.h>
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
bool
DESCRIPTIONTheck_pr_cas (3) family of
functions atomically compare the value in target for
equality with old_value and if so, replace the value
pointed to by target with the value specified by
new_value. If the value in target
was not equal to the value specified by old_value then
no modifications occur to the value in target. The
*_value form of these functions unconditionally update
original_value.
RETURN VALUESThis family of functions return true if the value in target was modified as a result of the operation. Otherwise, they return false.SEE ALSOck_pr_fence_load(3), ck_pr_fence_load_depends(3), ck_pr_fence_store(3), ck_pr_fence_memory(3), ck_pr_load(3), ck_pr_store(3), ck_pr_fas(3), ck_pr_faa(3), ck_pr_inc(3), ck_pr_dec(3), ck_pr_neg(3), ck_pr_not(3), ck_pr_sub(3), ck_pr_and(3), ck_pr_or(3), ck_pr_xor(3), ck_pr_add(3), ck_pr_btc(3), ck_pr_bts(3), ck_pr_btr(3)Additional information available at http://concurrencykit.org/
Visit the GSP FreeBSD Man Page Interface. |