P99
_Bool atomic_flag_test_and_set_explicit ( volatile atomic_flag p00_objp,
memory_order  p00_ord 
) [related]

Unconditionally set *object to true and return the previous value.

Parameters:
objectthe object that will be set
orderfine tune the set operation for a specific memory order. The current implementation only uses this to enforce a complete memory barrier where necessary.

Definition at line 885 of file p99_atomic.h.

References _Bool, atomic_thread_fence(), memory_order_acq_rel, memory_order_relaxed, memory_order_release, memory_order_seq_cst, and P99_ENCP.

Referenced by atomic_flag_lock(), atomic_flag_test_and_set(), and atomic_flag_trylock().

+ Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines