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

#include <atomic>

Public Types

typedef __atomic_base< long > __base_type
typedef long __integral_type
using value_type

Public Member Functions

constexpr atomic (__integral_type __i) noexcept
 atomic (const atomic &)=delete
bool compare_exchange_strong (long &__e, long __i, memory_order __s, memory_order __f) noexcept
bool compare_exchange_weak (long &__e, long __i, memory_order __s, memory_order __f) noexcept
long exchange (long __i, memory_order __m=memory_order_seq_cst) noexcept
bool is_lock_free () const noexcept
long load (memory_order __m=memory_order_seq_cst) const noexcept
void notify_all () noexcept
void notify_one () noexcept
 operator long () const noexcept
 operator long () const volatile noexcept
atomic & operator= (const atomic &) volatile =delete
atomic & operator= (const atomic &)=delete
void store (long __i, memory_order __m=memory_order_seq_cst) noexcept
void wait (long __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 long.

Definition at line 871 of file atomic.

Member Typedef Documentation

◆ __base_type

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

Definition at line 874 of file atomic.

◆ __integral_type

typedef long std::atomic< long >::__integral_type

Definition at line 873 of file atomic.

◆ value_type

using std::atomic< long >::value_type

Definition at line 200 of file atomic.

Constructor & Destructor Documentation

◆ atomic()

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

Definition at line 882 of file atomic.

Member Function Documentation

◆ compare_exchange_strong()

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

Definition at line 366 of file atomic.

◆ compare_exchange_weak()

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

Definition at line 338 of file atomic.

◆ exchange()

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

Definition at line 315 of file atomic.

◆ is_lock_free()

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

Definition at line 260 of file atomic.

◆ load()

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

Definition at line 297 of file atomic.

◆ notify_all()

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

Definition at line 408 of file atomic.

◆ notify_one()

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

Definition at line 404 of file atomic.

◆ operator long() [1/2]

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

Definition at line 245 of file atomic.

◆ operator long() [2/2]

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

Definition at line 248 of file atomic.

◆ store()

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

Definition at line 281 of file atomic.

◆ wait()

void std::atomic< long >::wait ( long __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< long >::is_always_lock_free
staticconstexpr

Definition at line 888 of file atomic.


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