Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Describes an object that atomically sets and clears a bool flag. Operations on atomic flags are always lock-free.
struct atomic_flag;
Members
Public Methods
Name |
Description |
---|---|
Sets the stored flag to false. |
|
Sets the stored flag to true and returns the initial flag value. |
Remarks
atomic_flag objects can be passed to the non-member functions atomic_flag_clear, atomic_flag_clear_explicit, atomic_flag_test_and_set, and atomic_flag_test_and_set_explicit. They can be initialized by using the value ATOMIC_FLAG_INIT.
Requirements
Header: atomic
Namespace: std