Standard C Library Functions atomicand(3C)
NAME
atomicand, atomicand8, atomicanduchar, atomicand16,
atomicandushort, atomicand32, atomicanduint,
atomicandulong, atomicand64, atomicand8nv,
atomicanducharnv, atomicand16nv, atomicandushortnv,
atomicand32nv, atomicanduintnv, atomicandulongnv,
atomicand64nv - atomic AND operations
SYNOPSIS
#include
void atomicand8(volatile uint8t *target, uint8t bits);
void atomicanduchar(volatile uchart *target, uchart bits);
void atomicand16(volatile uint16t *target, uint16t bits);
void atomicandushort(volatile ushortt *target, ushortt bits);
void atomicand32(volatile uint32t *target, uint32t bits);
void atomicanduint(volatile uintt *target, uintt bits);
void atomicandulong(volatile ulongt *target, ulongt bits);
void atomicand64(volatile uint64t *target, uint64t bits);
uint8t atomicand8nv(volatile uint8t *target, uint8t bits);
uchart atomicanducharnv(volatile uchart *target, uchart bits);
uint16t atomicand16nv(volatile uint16t *target, uint16t bits);
ushortt atomicandushortnv(volatile ushortt *target, ushortt bits);
uint32t atomicand32nv(volatile uint32t *target, uint32t bits);
uintt atomicanduintnv(volatile uintt *target, uintt bits);
SunOS 5.11 Last change: 13 May 2005 1
Standard C Library Functions atomicand(3C)
ulongt atomicandulongnv(volatile ulongt *target, ulongt bits);
uint64t atomicand64nv(volatile uint64t *target, uint64t bits);
DESCRIPTION
These functions enable the bitwise AND of bits to the value
stored in target to occur in an atomic manner.
RETURN VALUES
The *nv() variants of these functions return the new value
of target.
ERORS
No errors are defined.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
atomicadd(3C), atomicbits(3C), atomiccas(3C),
atomicdec(3C), atomicinc(3C), atomicor(3C),
atomicswap(3C), membarops(3C), attributes(5),
atomicops(9F)
NOTES
The *nv() variants are substantially more expensive on some
platforms than the versions that do not return values. Do
not use them unless you need to know the new value atomi-
cally.
SunOS 5.11 Last change: 13 May 2005 2
|