AtomicTest< ParaType > Class Template Reference

this test case tests general functionality for all atomic types. More...

#include <test_atomic.h>

List of all members.

Public Member Functions

 AtomicTest ()
void setUp ()
void reset ()
void tearDown ()
void testAcqRel ()
 A producer/consumer sample is used here to check if acquire and release barrier are correctly implemented.


Detailed Description

template<class ParaType>
class AtomicTest< ParaType >

this test case tests general functionality for all atomic types.

Constructor & Destructor Documentation

template<class ParaType>
AtomicTest< ParaType >::AtomicTest (  )  [inline]


Member Function Documentation

template<class ParaType>
void AtomicTest< ParaType >::setUp (  )  [inline]

template<class ParaType>
void AtomicTest< ParaType >::reset (  )  [inline]

template<class ParaType>
void AtomicTest< ParaType >::tearDown (  )  [inline]

template<typename ParaType>
void AtomicTest< ParaType >::testAcqRel (  )  [inline]

A producer/consumer sample is used here to check if acquire and release barrier are correctly implemented.

Create a thread to load with acquire barrier, and create another thread to store with release, and check if there is incorrect reordering occured.


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

Generated on Tue Dec 9 13:39:39 2008 for Amino by  doxygen 1.5.6