P99
_Bool atomic_flag_trylock ( volatile atomic_flag p00_objp) [inline]

extension: set the flag and return true if we are the first to do so

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 979 of file p99_atomic.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines