|
Chromium Embedded Framework (CEF)
122.0.1+gf3f83ff+chromium-122.0.6261.6
|
A flag that can safely be set from one thread and read from other threads. More...
#include "include/base/cef_atomic_flag.h"
Public Member Functions | |
| AtomicFlag () | |
| AtomicFlag (const AtomicFlag &)=delete | |
| AtomicFlag & | operator= (const AtomicFlag &)=delete |
| ~AtomicFlag () | |
| void | Set () |
| Set the flag. More... | |
| bool | IsSet () const |
| Returns true iff the flag was set. More... | |
| void | UnsafeResetForTesting () |
| Resets the flag. More... | |
A flag that can safely be set from one thread and read from other threads.
This class IS NOT intended for synchronization between threads.
| base::AtomicFlag::AtomicFlag | ( | ) |
|
delete |
| base::AtomicFlag::~AtomicFlag | ( | ) |
|
inline |
|
delete |
| void base::AtomicFlag::Set | ( | ) |
Set the flag.
Must always be called from the same thread.
| void base::AtomicFlag::UnsafeResetForTesting | ( | ) |
Resets the flag.
Be careful when using this: callers might not expect IsSet() to return false after returning true once.