#include <cas.h>
Inheritance diagram for rpa::cas2_mutex< Iter1, Iter2, Mutex >:
Static Public Member Functions | |
static bool | cas (typename atomic< Iter1 >::atomic_type *It1Ptr, Iter1 It1Old, Iter1 It1New, typename atomic< Iter2 >::atomic_type *It2Ptr, Iter2 It2Old, Iter2 It2New) |
Static Public Attributes | |
static Mutex | sttMtx |
Allows to implement a CompareAndSwap even for iterators which have no support for atomic operations, by simulating them with a mutex. This is for testing purpose, because there is no performance benefit.
static bool rpa::cas2_mutex< Iter1, Iter2, Mutex >::cas | ( | typename atomic< Iter1 >::atomic_type * | It1Ptr, | |
Iter1 | It1Old, | |||
Iter1 | It1New, | |||
typename atomic< Iter2 >::atomic_type * | It2Ptr, | |||
Iter2 | It2Old, | |||
Iter2 | It2New | |||
) | [inline, static] |
Mutex rpa::cas2_mutex< Iter1, Iter2, Mutex >::sttMtx [static] |