ck_pr_btr3
Atomic bit test-and-reset operations
Usage
#include <ck_pr.h>
bool
ck_pr_btr_ptr(void *target, unsigned int bit_index);
bool
ck_pr_btr_uint(uint *target, unsigned int bit_index);
bool
ck_pr_btr_int(int *target, unsigned int bit_index);
bool
ck_pr_btr_64(uint64_t *target, unsigned int bit_index);
bool
ck_pr_btr_32(uint32_t *target, unsigned int bit_index);
bool
ck_pr_btr_16(uint16_t *target, unsigned int bit_index);
Library
Concurrency Kit (libck, -lck)
Overview
The ck_pr_btr(3) family of functions atomically fetch the value of the bit in target at index bit_index and set that bit to 0.
Return values
This family of functions returns 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.