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;

Parameters

  • Flag
    A pointer to an atomic_flag object.

  • Order
    A memory_order.

Return Value

The initial value of Flag.

Requirements

Header: atomic

Namespace: std

See Also

Reference

<atomic>