#include <test_atomic.h>

Public Member Functions | |
| MathThreadFactory (atomic< ParaType > *s, AtomicNumTest< ParaType, CLASS_NAME > *test_case) | |
| virtual Runnable ** | createThreads (int threadNum, int elementNum, int operationNum) |
| virtual void | verifyResult (int threadNum, int elementNum) |
| MathThreadFactory< ParaType, CLASS_NAME >::MathThreadFactory | ( | atomic< ParaType > * | s, | |
| AtomicNumTest< ParaType, CLASS_NAME > * | test_case | |||
| ) | [inline] |
| virtual Runnable** MathThreadFactory< ParaType, CLASS_NAME >::createThreads | ( | int | threadNum, | |
| int | elementNum, | |||
| int | operationNum | |||
| ) | [inline, virtual] |
Create multiple threads which can be used to run simultaneously. This method should also clean and setup internal state for next round of execution.
Implements test::ThreadFactory< ParaType >.
| virtual void MathThreadFactory< ParaType, CLASS_NAME >::verifyResult | ( | int | threadNum, | |
| int | elementNum | |||
| ) | [inline, virtual] |
Verify result when created threads finished.
Reimplemented from test::ThreadFactory< ParaType >.
1.5.6