Atomically sets and clears a bit flag. More...
#include <rw/tools/atomicflag.h>
Public Member Functions | |
void | clear (RWAtomicMemoryOrder order=rw_mem_order_seq_cst) |
void | clear (RWAtomicMemoryOrder order=rw_mem_order_seq_cst) volatile |
bool | testAndSet (RWAtomicMemoryOrder order=rw_mem_order_seq_cst) |
bool | testAndSet (RWAtomicMemoryOrder order=rw_mem_order_seq_cst) volatile |
Related Functions | |
(Note that these are not member functions.) | |
#define | RW_ATOMIC_FLAG_INIT |
RWAtomicFlag manages a bit flag (set or cleared) allowing for atomic manipulation of the bit, including providing test-and-set functionality.
|
inline |
Unsets the flag.
|
inline |
Unsets the flag.
|
inline |
Sets the flag and returns true
if the flag was previously set, false
otherwise.
|
inline |
Sets the flag and returns true
if the flag was previously set, false
otherwise.
|
related |
Initializes an RWAtomicFlag to a cleared state.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |