The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

atomic_flag_test_and_set Function

Sets the bool flag in an atomic_flag object to true, within the constraints of the memory_order_seq_cst memory_order.

inline bool atomic_flag_test_and_set(
   volatile atomic_flag *Flag,
inline bool atomic_flag_test_and_set(
   atomic_flag *Flag,


A pointer to an atomic_flag object.

The initial value of Flag.

Header: atomic

Namespace: std

© 2014 Microsoft