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

#include <atomic.hpp>

Public Types

using value_type = char
 

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

Data Fields

const bool is_always_lock_free = true
 

Detailed Description

Definition at line 267 of file atomic.hpp.

Member Typedef Documentation

◆ value_type

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

Definition at line 270 of file atomic.hpp.

Constructor & Destructor Documentation

◆ atomic() [1/2]

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

◆ ~atomic()

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

◆ atomic() [2/2]

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

Member Function Documentation

◆ compare_exchange_strong()

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

Definition at line 319 of file atomic.hpp.

◆ compare_exchange_weak()

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

Definition at line 307 of file atomic.hpp.

◆ exchange()

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

Definition at line 301 of file atomic.hpp.

◆ is_lock_free()

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

Definition at line 279 of file atomic.hpp.

◆ load()

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

Definition at line 289 of file atomic.hpp.

◆ operator char()

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

Definition at line 296 of file atomic.hpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ store()

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

Definition at line 284 of file atomic.hpp.

Field Documentation

◆ is_always_lock_free

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

Definition at line 271 of file atomic.hpp.


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