#include <test_atomic.h>
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. | |
| AtomicTest< ParaType >::AtomicTest | ( | ) | [inline] |
| void AtomicTest< ParaType >::setUp | ( | ) | [inline] |
| void AtomicTest< ParaType >::reset | ( | ) | [inline] |
| void AtomicTest< ParaType >::tearDown | ( | ) | [inline] |
| 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.
1.5.6