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