tenno 0.1.0
Loading...
Searching...
No Matches
tenno::atomic< int > Class Reference

#include <atomic.hpp>

Public Types

using value_type = int
 

Public Member Functions

 atomic () noexcept=default
 
 ~atomic () noexcept=default
 
 atomic (const atomic &)=delete
 
atomicoperator= (const atomic &)=delete
 
atomicoperator= (const atomic &) volatile =delete
 
bool is_lock_free () const noexcept
 
void store (int desired) noexcept
 
int load () noexcept
 
 operator int () noexcept
 
int exchange (int desired) noexcept
 
bool compare_exchange_weak (int &expected, int desired) noexcept
 
bool compare_exchange_strong (int &expected, int desired) noexcept
 

Data Fields

const bool is_always_lock_free = true
 

Detailed Description

Definition at line 194 of file atomic.hpp.

Member Typedef Documentation

◆ value_type

using tenno::atomic< int >::value_type = int

Definition at line 197 of file atomic.hpp.

Constructor & Destructor Documentation

◆ atomic() [1/2]

tenno::atomic< int >::atomic ( )
defaultnoexcept

◆ ~atomic()

tenno::atomic< int >::~atomic ( )
defaultnoexcept

◆ atomic() [2/2]

tenno::atomic< int >::atomic ( const atomic< int > & )
delete

Member Function Documentation

◆ compare_exchange_strong()

bool tenno::atomic< int >::compare_exchange_strong ( int & expected,
int desired )
inlinenoexcept

Definition at line 246 of file atomic.hpp.

◆ compare_exchange_weak()

bool tenno::atomic< int >::compare_exchange_weak ( int & expected,
int desired )
inlinenoexcept

Definition at line 234 of file atomic.hpp.

◆ exchange()

int tenno::atomic< int >::exchange ( int desired)
inlinenoexcept

Definition at line 228 of file atomic.hpp.

◆ is_lock_free()

bool tenno::atomic< int >::is_lock_free ( ) const
inlinenoexcept

Definition at line 206 of file atomic.hpp.

◆ load()

int tenno::atomic< int >::load ( )
inlinenoexcept

Definition at line 216 of file atomic.hpp.

◆ operator int()

tenno::atomic< int >::operator int ( )
inlinenoexcept

Definition at line 223 of file atomic.hpp.

◆ operator=() [1/2]

atomic & tenno::atomic< int >::operator= ( const atomic< int > & ) volatile
delete

◆ operator=() [2/2]

atomic & tenno::atomic< int >::operator= ( const atomic< int > & )
delete

◆ store()

void tenno::atomic< int >::store ( int desired)
inlinenoexcept

Definition at line 211 of file atomic.hpp.

Field Documentation

◆ is_always_lock_free

const bool tenno::atomic< int >::is_always_lock_free = true

Definition at line 198 of file atomic.hpp.


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