atomic_flag_test_and_set_explicit Function

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

inline bool atomic_flag_test_and_set_explicit(
   volatile atomic_flag *Flag,
   memory_order Order
) _NOEXCEPT;
inline bool atomic_flag_test_and_set_explicit(
   atomic_flag *Flag,
   memory_order Order
) _NOEXCEPT;

Flag

A pointer to an atomic_flag object.

Order

A memory_order.

The initial value of Flag.

Header: atomic

Namespace: std

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft