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

#include <atomic.hpp>

Public Types

using value_type = long
 

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 (long desired) noexcept
 
long load () noexcept
 
 operator long () noexcept
 
long exchange (long desired) noexcept
 
bool compare_exchange_weak (long &expected, long desired) noexcept
 
bool compare_exchange_strong (long &expected, long desired) noexcept
 

Data Fields

const bool is_always_lock_free = true
 

Detailed Description

Definition at line 340 of file atomic.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 343 of file atomic.hpp.

Constructor & Destructor Documentation

◆ atomic() [1/2]

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

◆ ~atomic()

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

◆ atomic() [2/2]

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

Member Function Documentation

◆ compare_exchange_strong()

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

Definition at line 392 of file atomic.hpp.

◆ compare_exchange_weak()

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

Definition at line 380 of file atomic.hpp.

◆ exchange()

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

Definition at line 374 of file atomic.hpp.

◆ is_lock_free()

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

Definition at line 352 of file atomic.hpp.

◆ load()

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

Definition at line 362 of file atomic.hpp.

◆ operator long()

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

Definition at line 369 of file atomic.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ store()

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

Definition at line 357 of file atomic.hpp.

Field Documentation

◆ is_always_lock_free

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

Definition at line 344 of file atomic.hpp.


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