YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
yaclib::detail::fiber::AtomicFlag Class Reference

#include <atomic_flag.hpp>

Inheritance diagram for yaclib::detail::fiber::AtomicFlag:
[legend]
Collaboration diagram for yaclib::detail::fiber::AtomicFlag:
[legend]

Public Member Functions

void clear (std::memory_order) volatile noexcept
 
void clear (std::memory_order) noexcept
 
bool test_and_set (std::memory_order) volatile noexcept
 
bool test_and_set (std::memory_order) noexcept
 
- Public Member Functions inherited from yaclib::detail::fiber::AtomicWait< bool >
 AtomicWait () noexcept=default
 
constexpr AtomicWait (bool desired) noexcept
 
bool operator= (bool desired) volatile noexcept
 
bool operator= (bool desired) noexcept
 
bool is_lock_free () const volatile noexcept
 
bool is_lock_free () const noexcept
 

Additional Inherited Members

- Static Public Attributes inherited from yaclib::detail::fiber::AtomicWait< bool >
static constexpr bool is_always_lock_free
 
- Protected Attributes inherited from yaclib::detail::fiber::AtomicWait< bool >
bool _value
 

Detailed Description

Definition at line 9 of file atomic_flag.hpp.

Member Function Documentation

◆ clear() [1/2]

void yaclib::detail::fiber::AtomicFlag::clear ( std::memory_order  )
inlinenoexcept

Definition at line 18 of file atomic_flag.hpp.

References yaclib::detail::fiber::AtomicWait< bool >::_value.

◆ clear() [2/2]

void yaclib::detail::fiber::AtomicFlag::clear ( std::memory_order  ) volatile
inlinenoexcept

Definition at line 15 of file atomic_flag.hpp.

References yaclib::detail::fiber::AtomicWait< bool >::_value.

◆ test_and_set() [1/2]

bool yaclib::detail::fiber::AtomicFlag::test_and_set ( std::memory_order  )
inlinenoexcept

◆ test_and_set() [2/2]

bool yaclib::detail::fiber::AtomicFlag::test_and_set ( std::memory_order  ) volatile
inlinenoexcept

The documentation for this class was generated from the following file: