libstdc++
std::atomic< int > Struct Reference

#include <atomic>

Public Types

typedef __atomic_base< int > __base_type
typedef int __integral_type
using value_type

Public Member Functions

constexpr atomic (__integral_type __i) noexcept
 atomic (const atomic &)=delete
bool compare_exchange_strong (int &__e, int __i, memory_order __s, memory_order __f) noexcept
bool compare_exchange_weak (int &__e, int __i, memory_order __s, memory_order __f) noexcept
int exchange (int __i, memory_order __m=memory_order_seq_cst) noexcept
bool is_lock_free () const noexcept
int load (memory_order __m=memory_order_seq_cst) const noexcept
void notify_all () noexcept
void notify_one () noexcept
 operator int () const noexcept
 operator int () const volatile noexcept
atomic & operator= (const atomic &) volatile =delete
atomic & operator= (const atomic &)=delete
void store (int __i, memory_order __m=memory_order_seq_cst) noexcept
void wait (int __old, memory_order __m=memory_order_seq_cst) const noexcept

Static Public Attributes

static constexpr bool is_always_lock_free

Detailed Description

Explicit specialization for int.

Definition at line 825 of file atomic.

Member Typedef Documentation

◆ __base_type

typedef __atomic_base<int> std::atomic< int >::__base_type

Definition at line 828 of file atomic.

◆ __integral_type

typedef int std::atomic< int >::__integral_type

Definition at line 827 of file atomic.

◆ value_type

using std::atomic< int >::value_type

Definition at line 200 of file atomic.

Constructor & Destructor Documentation

◆ atomic()

std::atomic< int >::atomic ( __integral_type __i)
inlineconstexprnoexcept

Definition at line 836 of file atomic.

Member Function Documentation

◆ compare_exchange_strong()

bool std::atomic< int >::compare_exchange_strong ( int & __e,
int __i,
memory_order __s,
memory_order __f )
inlinenoexcept

Definition at line 366 of file atomic.

◆ compare_exchange_weak()

bool std::atomic< int >::compare_exchange_weak ( int & __e,
int __i,
memory_order __s,
memory_order __f )
inlinenoexcept

Definition at line 338 of file atomic.

◆ exchange()

int std::atomic< int >::exchange ( int __i,
memory_order __m = memory_order_seq_cst )
inlinenoexcept

Definition at line 315 of file atomic.

◆ is_lock_free()

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

Definition at line 260 of file atomic.

◆ load()

int std::atomic< int >::load ( memory_order __m = memory_order_seq_cst) const
inlinenoexcept

Definition at line 297 of file atomic.

◆ notify_all()

void std::atomic< int >::notify_all ( )
inlinenoexcept

Definition at line 408 of file atomic.

◆ notify_one()

void std::atomic< int >::notify_one ( )
inlinenoexcept

Definition at line 404 of file atomic.

◆ operator int() [1/2]

std::atomic< int >::operator int ( ) const
inlinenoexcept

Definition at line 245 of file atomic.

◆ operator int() [2/2]

std::atomic< int >::operator int ( ) const volatile
inlinenoexcept

Definition at line 248 of file atomic.

◆ store()

void std::atomic< int >::store ( int __i,
memory_order __m = memory_order_seq_cst )
inlinenoexcept

Definition at line 281 of file atomic.

◆ wait()

void std::atomic< int >::wait ( int __old,
memory_order __m = memory_order_seq_cst ) const
inlinenoexcept

Definition at line 395 of file atomic.

Member Data Documentation

◆ is_always_lock_free

bool std::atomic< int >::is_always_lock_free
staticconstexpr

Definition at line 842 of file atomic.


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