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

Public Types

typedef _Uint1_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 _Uint1_t _Atomic_impl< 1U >::_My_int

Member Function Documentation

bool _Atomic_impl< 1U >::_Compare_exchange_strong ( void _Tgt,
void _Exp,
const void _Value,
memory_order  _Order1,
memory_order  _Order2 
) volatile
inline
353  { // compare/exchange
355  (_My_int*)_Tgt, (_My_int*)_Exp, *(_My_int*)_Value,
356  _Order1, _Order2);
357  }
int _Atomic_compare_exchange_strong_1(volatile _Uint1_t *_Tgt, _Uint1_t *_Exp, _Uint1_t _Value, memory_order _Order1, memory_order _Order2)
Definition: xatomic.h:567
_CRTIMP _In_ int _Value
Definition: setjmp.h:190
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
_Uint1_t _My_int
Definition: atomic:317
bool _Atomic_impl< 1U >::_Compare_exchange_weak ( void _Tgt,
void _Exp,
const void _Value,
memory_order  _Order1,
memory_order  _Order2 
) volatile
inline
344  { // compare/exchange
346  (_My_int*)_Tgt, (_My_int*)_Exp, *(_My_int*)_Value,
347  _Order1, _Order2);
348  }
_CRTIMP _In_ int _Value
Definition: setjmp.h:190
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Exp(double *, double, short)
_Uint1_t _My_int
Definition: atomic:317
int _Atomic_compare_exchange_weak_1(volatile _Uint1_t *_Tgt, _Uint1_t *_Exp, _Uint1_t _Value, memory_order _Order1, memory_order _Order2)
Definition: xatomic.h:595
void _Atomic_impl< 1U >::_Exchange ( void _Left,
void _Right,
memory_order  _Order 
) volatile
inline
336  { // exchange
337  *(_My_int*)_Right =
338  _Atomic_exchange_1((_My_int*)_Left, *(_My_int*)_Right, _Order);
339  }
_Uint1_t _My_int
Definition: atomic:317
_Uint1_t _Atomic_exchange_1(volatile _Uint1_t *_Tgt, _Uint1_t _Value, memory_order _Order)
Definition: xatomic.h:460
const _Ty & _Right
Definition: algorithm:4087
bool _Atomic_impl< 1U >::_Is_lock_free ( ) const volatile
inline
320  { // all operations are lock-free
321  return _Atomic_is_lock_free_1();
322  }
int _Atomic_is_lock_free_1(void)
Definition: xatomic.h:2526
void _Atomic_impl< 1U >::_Load ( void _Tgt,
const void _Src,
memory_order  _Order 
) const volatile
inline
331  { // load
332  *(_My_int*)_Tgt = _Atomic_load_1((_My_int*)_Src, _Order);
333  }
_Uint1_t _Atomic_load_1(volatile _Uint1_t *_Tgt, memory_order _Order)
Definition: xatomic.h:410
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
_Uint1_t _My_int
Definition: atomic:317
void _Atomic_impl< 1U >::_Store ( void _Tgt,
const void _Src,
memory_order  _Order 
) volatile
inline
325  { // store
326  _Atomic_store_1((_My_int*)_Tgt, *(_My_int*)_Src, _Order);
327  }
void _Atomic_store_1(volatile _Uint1_t *_Tgt, _Uint1_t _Value, memory_order _Order)
Definition: xatomic.h:347
_In_ size_t _In_z_ const unsigned char * _Src
Definition: mbstring.h:95
_Uint1_t _My_int
Definition: atomic:317

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