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
208  { // atomically clear *this
209  _ATOMIC_FLAG_CLEAR(&_My_flag, _Order);
210  }
#define _ATOMIC_FLAG_CLEAR
Definition: xatomic.h:167
_Atomic_flag_t _My_flag
Definition: atomic:187
void atomic_flag::clear ( memory_order  _Order = memory_order_seq_cst)
inline
213  { // atomically clear *this
214  _ATOMIC_FLAG_CLEAR(&_My_flag, _Order);
215  }
#define _ATOMIC_FLAG_CLEAR
Definition: xatomic.h:167
_Atomic_flag_t _My_flag
Definition: atomic:187
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
197  { // atomically set *this to true and return previous value
198  return (_ATOMIC_FLAG_TEST_AND_SET(&_My_flag, _Order));
199  }
#define _ATOMIC_FLAG_TEST_AND_SET
Definition: xatomic.h:166
_Atomic_flag_t _My_flag
Definition: atomic:187
bool atomic_flag::test_and_set ( memory_order  _Order = memory_order_seq_cst)
inline
202  { // atomically set *this to true and return previous value
203  return (_ATOMIC_FLAG_TEST_AND_SET(&_My_flag, _Order));
204  }
#define _ATOMIC_FLAG_TEST_AND_SET
Definition: xatomic.h:166
_Atomic_flag_t _My_flag
Definition: atomic:187

Member Data Documentation

_Atomic_flag_t atomic_flag::_My_flag

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