ck_pr_bts(3)

ck_pr_bts3

Atomic bit test-and-set operations

Usage

#include <ck_pr.h>

bool

ck_pr_bts_ptr(void *target, unsigned int bit_index);

bool

ck_pr_bts_uint(uint *target, unsigned int bit_index);

bool

ck_pr_bts_int(int *target, unsigned int bit_index);

bool

ck_pr_bts_64(uint64_t *target, unsigned int bit_index);

bool

ck_pr_bts_32(uint32_t *target, unsigned int bit_index);

bool

ck_pr_bts_16(uint16_t *target, unsigned int bit_index);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_pr_bts(3) family of functions atomically fetch the value of the bit in target at index bit_index and set that bit to 1.

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.

  1. 8
  2. 9–13

From libck-dev 0.7.2-6 in Debian 13 (Trixie). Parsed by carta from the page's mdoc source.