ck_pr_load_int(3) atomic volatile load operations

Other Alias

ck_pr_load_ptr, ck_pr_load_double, ck_pr_load_uint, ck_pr_load_char, ck_pr_load_64, ck_pr_load_32, ck_pr_load_16, ck_pr_load_8

LIBRARY

Concurrency Kit (libck, -lck)

SYNOPSIS

In ck_pr.h Ft void * Fn ck_pr_load_ptr const void *target Ft double Fn ck_pr_load_double const double *target Ft unsigned int Fn ck_pr_load_uint const unsigned int *target Ft int Fn ck_pr_load_int const int *target Ft char Fn ck_pr_load_char const char *target Ft uint64_t Fn ck_pr_load_64 const uint64_t *target Ft uint32_t Fn ck_pr_load_32 const uint32_t *target Ft uint16_t Fn ck_pr_load_16 const uint16_t *target Ft uint8_t Fn ck_pr_load_8 const uint8_t *target

DESCRIPTION

The Fn ck_pr_load 3 family of functions atomically loads the value pointed to by Fa target and returns it. This family of functions always serves as an implicit compiler barrier and is not susceptible to re-ordering by the compiler.

RETURN VALUES

This family of functions returns the value contained in the location pointed to by the first argument.