P99
void atomic_flag_lock ( volatile atomic_flag p00_objp) [related]

extension: spin on p00_objp setting the flag until the state before was "clear"

This interprets an atomic_flag as a spinlock. State "clear" means unlocked and state "set" means locked.

This operation only guarantees acquire-consistency.

Definition at line 970 of file p99_atomic.h.

References atomic_flag_test_and_set_explicit(), and memory_order_acquire.

+ Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines