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

#include <atomic>

Public Types

typedef __atomic_base< short > __base_type
typedef short __integral_type
using value_type

Public Member Functions

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

Definition at line 780 of file atomic.

Member Typedef Documentation

◆ __base_type

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

Definition at line 783 of file atomic.

◆ __integral_type

typedef short std::atomic< short >::__integral_type

Definition at line 782 of file atomic.

◆ value_type

using std::atomic< short >::value_type

Definition at line 200 of file atomic.

Constructor & Destructor Documentation

◆ atomic()

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

Definition at line 791 of file atomic.

Member Function Documentation

◆ compare_exchange_strong()

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

Definition at line 358 of file atomic.

◆ compare_exchange_weak()

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

Definition at line 322 of file atomic.

◆ exchange()

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

Definition at line 301 of file atomic.

◆ is_lock_free()

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

Definition at line 250 of file atomic.

◆ load()

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

Definition at line 283 of file atomic.

◆ notify_all()

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

Definition at line 408 of file atomic.

◆ notify_one()

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

Definition at line 404 of file atomic.

◆ operator short() [1/2]

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

Definition at line 235 of file atomic.

◆ operator short() [2/2]

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

Definition at line 238 of file atomic.

◆ store()

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

Definition at line 271 of file atomic.

◆ wait()

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

Definition at line 797 of file atomic.


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