Tervel  1.0.0
A collection of wait-free containers and algorithms.
Classes | Functions
tervel::algorithms::wf::mcas Namespace Reference

Classes

class  CasRow
 This class is used to represent a one of the M CAS operations performed by an MCAS operation. More...
 
class  Helper
 This class is the MCAS operation's helper. More...
 
class  MCAS
 
class  MultiWordCompareAndSwap
 MultiWordCompareAndSwap class is used to perform a Multi-Word Compare-and-Swap (MCAS) To execute an MCAS, call addCASTriple for each address you want to update, then call execute();. More...
 

Functions

template<class T >
read (std::atomic< T > *address)
 This function determines the logical value of the address. More...
 

Function Documentation

template<class T >
T tervel::algorithms::wf::mcas::read ( std::atomic< T > *  address)
inline

This function determines the logical value of the address.

Parameters
addressthe location to determine the value
Returns
the logical value