PTLib  Version 2.18.8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PAtomicInteger Class Reference

#include <atomic.h>

Inheritance diagram for PAtomicInteger:
Collaboration diagram for PAtomicInteger:

Public Types

typedef long IntegerType
 

Public Member Functions

 PAtomicInteger (IntegerType value=0)
 
__inline PAtomicIntegeroperator= (IntegerType value)
 
void SetValue (IntegerType value)
 
__inline bool IsZero () const
 
- Public Member Functions inherited from atomic< long >
__inline atomic ()
 
__inline atomic (longvalue)
 
__inline atomic (const atomic &other)
 
__inline ~atomic ()
 
__inline atomicoperator= (const atomic &other)
 
__inline operator long () const
 
__inline long load () const
 
__inline void store (longvalue)
 
__inline long exchange (longvalue)
 
bool compare_exchange_strong (long &comp, longvalue)
 

Member Typedef Documentation

Constructor & Destructor Documentation

PAtomicInteger::PAtomicInteger ( IntegerType  value = 0)
inlineexplicit

Member Function Documentation

__inline bool PAtomicInteger::IsZero ( ) const
inline
__inline PAtomicInteger& PAtomicInteger::operator= ( IntegerType  value)
inline
void PAtomicInteger::SetValue ( IntegerType  value)
inline

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