#include <test_atomic.h>
Public Member Functions | |
ThreadMath (atomic< ParaType > *var, AtomicNumTest< ParaType, CLASS_NAME > *test_case, int nOperation) | |
void * | run () |
this method will try to add and sub the same number from the atomic variable. so the final result will be no change at all. |
ThreadMath< ParaType, CLASS_NAME >::ThreadMath | ( | atomic< ParaType > * | var, | |
AtomicNumTest< ParaType, CLASS_NAME > * | test_case, | |||
int | nOperation | |||
) | [inline] |
void* ThreadMath< ParaType, CLASS_NAME >::run | ( | ) | [inline, virtual] |
this method will try to add and sub the same number from the atomic variable. so the final result will be no change at all.
Reimplemented from amino::Thread.