Geogram Version 1.8.5
A programming library of geometric algorithms
|
Functions for atomic operations. More...
Go to the source code of this file.
Functions | |
void | geo_pause () |
Issues a processor pause (INTEL only) | |
char | atomic_bittestandset_x86 (volatile unsigned int *ptr, unsigned int bit) |
Atomically tests and sets a bit (INTEL only) | |
char | atomic_bittestandreset_x86 (volatile unsigned int *ptr, unsigned int bit) |
Atomically tests and resets a bit (INTEL only) | |
Functions for atomic operations.
Definition in file atomics.h.
|
inline |
Atomically tests and resets a bit (INTEL only)
Resets bit bit
of *ptr
and returns its previous value. The function is atomic and acts as a read-write memory barrier
[in] | ptr | a pointer to an unsigned integer |
[in] | bit | index of the bit to reset in ptr |
bit
|
inline |
Atomically tests and sets a bit (INTEL only)
Sets bit bit
of *ptr
and returns its previous value. The function is atomic and acts as a read-write memory barrier.
[in] | ptr | a pointer to an unsigned integer |
[in] | bit | index of the bit to set in *ptr |
bit