STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Typedefs | Enumerations | Functions
xatomic0.h File Reference
#include <yvals.h>

Go to the source code of this file.

Macros

#define _XATOMIC0_H
 
#define _WCHAR_T_SIZE   2
 
#define _SHORT_SIZE   2
 
#define _INT_SIZE   4
 
#define _LONG_SIZE   4
 
#define _LONGLONG_SIZE   8
 
#define _ADDR_SIZE   4
 
#define _ATOMIC_MAXBYTES_LOCK_FREE   8
 
#define _USE_INTERLOCKED_REFCOUNTING   0
 

Typedefs

typedef _STD_BEGIN enum memory_order memory_order
 
typedef _Uint32t _Uint4_t
 
typedef _Uint4_t _Atomic_integral_t
 
typedef long _Atomic_flag_t
 
typedef _Atomic_integral_t _Atomic_counter_t
 

Enumerations

enum  memory_order {
  memory_order_relaxed, memory_order_consume, memory_order_acquire, memory_order_release,
  memory_order_acq_rel, memory_order_seq_cst
}
 

Functions

_Atomic_integral_t _Get_atomic_count (const _Atomic_counter_t &_Counter)
 
void _Init_atomic_counter (_Atomic_counter_t &_Counter, _Atomic_integral_t _Value)
 
_EXTERN_C _CRTIMP2_PURE void __cdecl _Lock_shared_ptr_spin_lock ()
 
_CRTIMP2_PURE void __cdecl _Unlock_shared_ptr_spin_lock ()
 

Macro Definition Documentation

#define _ADDR_SIZE   4
#define _ATOMIC_MAXBYTES_LOCK_FREE   8
#define _INT_SIZE   4
#define _LONG_SIZE   4
#define _LONGLONG_SIZE   8
#define _SHORT_SIZE   2
#define _USE_INTERLOCKED_REFCOUNTING   0
#define _WCHAR_T_SIZE   2
#define _XATOMIC0_H

Typedef Documentation

typedef long _Atomic_flag_t
typedef _Uint32t _Uint4_t

Enumeration Type Documentation

Enumerator
memory_order_relaxed 
memory_order_consume 
memory_order_acquire 
memory_order_release 
memory_order_acq_rel 
memory_order_seq_cst 
15  {
22  } memory_order;
memory_order
Definition: xatomic0.h:15
Definition: xatomic0.h:20
Definition: xatomic0.h:17
Definition: xatomic0.h:16
Definition: xatomic0.h:21
Definition: xatomic0.h:19
Definition: xatomic0.h:18

Function Documentation

_Atomic_integral_t _Get_atomic_count ( const _Atomic_counter_t _Counter)
inline
56  { // get counter
57  return (_Counter);
58  }
void _Init_atomic_counter ( _Atomic_counter_t _Counter,
_Atomic_integral_t  _Value 
)
inline
62  { // non-atomically initialize counter
63  _Counter = _Value;
64  }
_In_ int _Value
Definition: setjmp.h:173
_EXTERN_C _CRTIMP2_PURE void __cdecl _Lock_shared_ptr_spin_lock ( )
_CRTIMP2_PURE void __cdecl _Unlock_shared_ptr_spin_lock ( )