A flag that can safely be set from one thread and read from other threads.
More...
#include "include/base/cef_atomic_flag.h"
A flag that can safely be set from one thread and read from other threads.
This class IS NOT intended for synchronization between threads.
◆ AtomicFlag() [1/2]
| base::AtomicFlag::AtomicFlag |
( |
| ) |
|
◆ AtomicFlag() [2/2]
| base::AtomicFlag::AtomicFlag |
( |
const AtomicFlag & |
| ) |
|
|
delete |
◆ ~AtomicFlag()
| base::AtomicFlag::~AtomicFlag |
( |
| ) |
|
◆ IsSet()
| bool base::AtomicFlag::IsSet |
( |
| ) |
const |
|
inline |
Returns true iff the flag was set.
If this returns true, the current thread is guaranteed to be synchronized with all memory operations on the thread which invoked Set() up until at least the first call to Set() on it.
◆ operator=()
◆ Set()
| void base::AtomicFlag::Set |
( |
| ) |
|
Set the flag.
Must always be called from the same thread.
◆ UnsafeResetForTesting()
| void base::AtomicFlag::UnsafeResetForTesting |
( |
| ) |
|
Resets the flag.
Be careful when using this: callers might not expect IsSet() to return false after returning true once.
The documentation for this class was generated from the following file: