ck_pr_faa(3)

ck_pr_faa3

Atomic fetch-and-add operations

Usage

#include <ck_pr.h>

uintptr_t

ck_pr_faa_ptr(void *target, uintptr_t delta);

double

ck_pr_faa_double(double *target, double delta);

char

ck_pr_faa_char(char *target, char delta);

unsigned int

ck_pr_faa_uint(unsigned int *target, unsigned int delta);

int

ck_pr_faa_int(int *target, int delta);

uint64_t

ck_pr_faa_64(uint64_t *target, uint64_t delta);

uint32_t

ck_pr_faa_32(uint32_t *target, uint32_t delta);

uint16_t

ck_pr_faa_16(uint16_t *target, uint16_t delta);

uint8_t

ck_pr_faa_8(uint8_t *target, uint8_t delta);

Library

Concurrency Kit (libck, -lck)

Overview

The ck_pr_faa(3) family of functions atomically fetch the value pointed to by target and add the value specified by delta to the value pointed to by target.

Return values

This function returns the value pointed to by target at the time of operation invocation before the addition operation is applied.

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.