STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | List of all members
_Atomic_impl< 2U > Struct Template Reference

Public Types

typedef _Uint2_t _My_int
 

Public Member Functions

bool _Is_lock_free () const volatile
 
void _Store (void *_Tgt, const void *_Src, memory_order _Order) volatile
 
void _Load (void *_Tgt, const void *_Src, memory_order _Order) const volatile
 
void _Exchange (void *_Left, void *_Right, memory_order _Order) volatile
 
bool _Compare_exchange_weak (void *_Tgt, void *_Exp, const void *_Value, memory_order _Order1, memory_order _Order2) volatile
 
bool _Compare_exchange_strong (void *_Tgt, void *_Exp, const void *_Value, memory_order _Order1, memory_order _Order2) volatile
 

Member Typedef Documentation

typedef _Uint2_t _Atomic_impl< 2U >::_My_int

Member Function Documentation

bool _Atomic_impl< 2U >::_Compare_exchange_strong ( void _Tgt,
void _Exp,
const void _Value,
memory_order  _Order1,
memory_order  _Order2 
) volatile
inline
403  { // compare/exchange
405  (_My_int*)_Tgt, (_My_int*)_Exp, *(_My_int*)_Value,
406  _Order1, _Order2));
407  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
int _Atomic_compare_exchange_strong_2(volatile _Uint2_t *_Tgt, _Uint2_t *_Exp, _Uint2_t _Value, memory_order _Order1, memory_order _Order2)
Definition: xatomic.h:989
_Uint2_t _My_int
Definition: atomic:367
_In_ _Value
Definition: corecrt_wstdlib.h:65
bool _Atomic_impl< 2U >::_Compare_exchange_weak ( void _Tgt,
void _Exp,
const void _Value,
memory_order  _Order1,
memory_order  _Order2 
) volatile
inline
394  { // compare/exchange
396  (_My_int*)_Tgt, (_My_int*)_Exp, *(_My_int*)_Value,
397  _Order1, _Order2));
398  }
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
_Uint2_t _My_int
Definition: atomic:367
_In_ _Value
Definition: corecrt_wstdlib.h:65
int _Atomic_compare_exchange_weak_2(volatile _Uint2_t *_Tgt, _Uint2_t *_Exp, _Uint2_t _Value, memory_order _Order1, memory_order _Order2)
Definition: xatomic.h:1017
void _Atomic_impl< 2U >::_Exchange ( void _Left,
void _Right,
memory_order  _Order 
) volatile
inline
386  { // exchange
387  *(_My_int*)_Right =
389  }
constexpr const _Ty &() _Left
Definition: algorithm:3722
_Uint2_t _My_int
Definition: atomic:367
_Uint2_t _Atomic_exchange_2(volatile _Uint2_t *_Tgt, _Uint2_t _Value, memory_order _Order)
Definition: xatomic.h:891
constexpr const _Ty &() _Right
Definition: algorithm:3723
bool _Atomic_impl< 2U >::_Is_lock_free ( ) const volatile
inline
370  { // all operations are lock-free
371  return (true);
372  }
void _Atomic_impl< 2U >::_Load ( void _Tgt,
const void _Src,
memory_order  _Order 
) const volatile
inline
381  { // load
382  *(_My_int*)_Tgt = _Atomic_load_2((_My_int*)_Src, _Order);
383  }
_Uint2_t _Atomic_load_2(volatile _Uint2_t *_Tgt, memory_order _Order)
Definition: xatomic.h:841
_Uint2_t _My_int
Definition: atomic:367
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
void _Atomic_impl< 2U >::_Store ( void _Tgt,
const void _Src,
memory_order  _Order 
) volatile
inline
375  { // store
376  _Atomic_store_2((_My_int*)_Tgt, *(_My_int*)_Src, _Order);
377  }
_Uint2_t _My_int
Definition: atomic:367
_In_ size_t _Out_opt_ int _In_z_ unsigned char const * _Src
Definition: mbstring.h:1039
void _Atomic_store_2(volatile _Uint2_t *_Tgt, _Uint2_t _Value, memory_order _Order)
Definition: xatomic.h:778

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