GaloisRuntime::PtrLock< T, true > Class Template Reference

#include <SimpleLock.h>

List of all members.

Public Member Functions

 PtrLock ()
 PtrLock (T val)
void lock ()
void unlock ()
void unlock_and_clear ()
void unlock_and_set (T val)
getValue () const
void setValue (T val)
bool try_lock ()
bool CAS (T oldval, T newval)

Private Attributes

volatile uintptr_t _lock

template<typename T>
class GaloisRuntime::PtrLock< T, true >


Constructor & Destructor Documentation

template<typename T >
GaloisRuntime::PtrLock< T, true >::PtrLock (  )  [inline]
template<typename T >
GaloisRuntime::PtrLock< T, true >::PtrLock ( val  )  [inline, explicit]

Member Function Documentation

template<typename T >
bool GaloisRuntime::PtrLock< T, true >::CAS ( oldval,
newval 
) [inline]
template<typename T >
T GaloisRuntime::PtrLock< T, true >::getValue (  )  const [inline]
template<typename T >
void GaloisRuntime::PtrLock< T, true >::lock (  )  [inline]
template<typename T >
void GaloisRuntime::PtrLock< T, true >::setValue ( val  )  [inline]
template<typename T >
bool GaloisRuntime::PtrLock< T, true >::try_lock (  )  [inline]
template<typename T >
void GaloisRuntime::PtrLock< T, true >::unlock (  )  [inline]
template<typename T >
void GaloisRuntime::PtrLock< T, true >::unlock_and_clear (  )  [inline]
template<typename T >
void GaloisRuntime::PtrLock< T, true >::unlock_and_set ( val  )  [inline]

Member Data Documentation

template<typename T >
volatile uintptr_t GaloisRuntime::PtrLock< T, true >::_lock [private]

The documentation for this class was generated from the following file:
Generated on Tue Aug 2 11:51:30 2011 for Galois by  doxygen 1.6.3