STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
atomic_flag Struct Reference

Public Member Functions

bool test_and_set (memory_order _Order=memory_order_seq_cst) volatile _NOEXCEPT
 
bool test_and_set (memory_order _Order=memory_order_seq_cst) _NOEXCEPT
 
void clear (memory_order _Order=memory_order_seq_cst) volatile _NOEXCEPT
 
void clear (memory_order _Order=memory_order_seq_cst) _NOEXCEPT
 
 atomic_flag () _NOEXCEPT=default
 
 atomic_flag (const atomic_flag &)=delete
 
atomic_flagoperator= (const atomic_flag &)=delete
 
atomic_flagoperator= (const atomic_flag &) volatile=delete
 

Public Attributes

_Atomic_flag_t _My_flag
 

Constructor & Destructor Documentation

atomic_flag::atomic_flag ( )
default
atomic_flag::atomic_flag ( const atomic_flag )
delete

Member Function Documentation

void atomic_flag::clear ( memory_order  _Order = memory_order_seq_cst) volatile
inline
211  { // atomically clear *this
212  _Atomic_flag_clear(&_My_flag, _Order);
213  }
void _Atomic_flag_clear(volatile _Atomic_flag_t *_Flag, memory_order _Order)
Definition: xatomic.h:2313
_Atomic_flag_t _My_flag
Definition: atomic:190
void atomic_flag::clear ( memory_order  _Order = memory_order_seq_cst)
inline
216  { // atomically clear *this
217  _Atomic_flag_clear(&_My_flag, _Order);
218  }
void _Atomic_flag_clear(volatile _Atomic_flag_t *_Flag, memory_order _Order)
Definition: xatomic.h:2313
_Atomic_flag_t _My_flag
Definition: atomic:190
atomic_flag& atomic_flag::operator= ( const atomic_flag )
delete
atomic_flag& atomic_flag::operator= ( const atomic_flag ) volatile
delete
bool atomic_flag::test_and_set ( memory_order  _Order = memory_order_seq_cst) volatile
inline
200  { // atomically set *this to true and return previous value
201  return (_Atomic_flag_test_and_set(&_My_flag, _Order));
202  }
int _Atomic_flag_test_and_set(volatile _Atomic_flag_t *_Flag, memory_order _Order)
Definition: xatomic.h:2288
_Atomic_flag_t _My_flag
Definition: atomic:190
bool atomic_flag::test_and_set ( memory_order  _Order = memory_order_seq_cst)
inline
205  { // atomically set *this to true and return previous value
206  return (_Atomic_flag_test_and_set(&_My_flag, _Order));
207  }
int _Atomic_flag_test_and_set(volatile _Atomic_flag_t *_Flag, memory_order _Order)
Definition: xatomic.h:2288
_Atomic_flag_t _My_flag
Definition: atomic:190

Member Data Documentation

_Atomic_flag_t atomic_flag::_My_flag

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