ck_pr_btc3
Atomic bit test-and-complement operations
Usage
#include <ck_pr.h>
bool
ck_pr_btc_ptr(void *target, unsigned int bit_index);
bool
ck_pr_btc_uint(uint *target, unsigned int bit_index);
bool
ck_pr_btc_int(int *target, unsigned int bit_index);
bool
ck_pr_btc_64(uint64_t *target, unsigned int bit_index);
bool
ck_pr_btc_32(uint32_t *target, unsigned int bit_index);
bool
ck_pr_btc_16(uint16_t *target, unsigned int bit_index);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_pr_btc(3) family of functions atomically fetch the value of the bit in target at index bit_index and set that bit to its complement.
Return values
These family of functions return the original value of the bit at offset bit_index that is in the value pointed to by target.
Releases
5 releases since Debian 8 (Jessie); the text changed 1 time.