#include <iostream>#include <iomanip>#include <vector>#include <string>#include <stdio.h>#include <errno.h>#include <time.h>#include "atomic_util.h"#include "system_abstraction.h"Go to the source code of this file.
Classes | |
| class | SyncOStream |
| class | RWLockLoopTest |
| class | RWLockLoopTestImpl< RWL > |
| class | RWLockTester |
| struct | RWLockGraphData |
| class | GraphData |
Typedefs | |
| typedef uint64_t | MILLISECONDS |
| typedef uint64_t | CLOCK_T |
| typedef volatile void(RWLockLoopTest::* | RWLockLoopTestRunFunction )(int loops, int rwratio) |
Functions | |
| template<class T> | |
| SyncOStream & | operator<< (SyncOStream &strm, T val) |
Variables | |
| const unsigned long | kValidationThreadsNumber = 40 |
| const unsigned long | kValidationLoopsNumber = 10000 |
| const unsigned long | kPerformanceLoopsNumber = 64000000 |
| const unsigned long | SLEEP_MSEC = 10 |
| const CLOCK_T | CLOCKS_IN_MILLISEC = CLOCKS_PER_SEC / CLOCK_T(1000) |
| const int | kLoopYields = 1000 |
| typedef uint64_t CLOCK_T |
Definition at line 33 of file rwlock_tester.h.
| typedef uint64_t MILLISECONDS |
Definition at line 32 of file rwlock_tester.h.
| typedef volatile void(RWLockLoopTest::* RWLockLoopTestRunFunction)(int loops, int rwratio) |
Definition at line 126 of file rwlock_tester.h.
| SyncOStream& operator<< | ( | SyncOStream & | strm, | |
| T | val | |||
| ) | [inline] |
| const CLOCK_T CLOCKS_IN_MILLISEC = CLOCKS_PER_SEC / CLOCK_T(1000) |
Definition at line 38 of file rwlock_tester.h.
Referenced by RWLockLoopTestImpl< RWL >::read_test_loop(), RWLockLoopTestImpl< RWL >::run_mixed(), and RWLockLoopTestImpl< RWL >::write_test_loop().
| const int kLoopYields = 1000 |
Definition at line 39 of file rwlock_tester.h.
Referenced by RWLockLoopTestImpl< RWL >::read_test_loop(), RWLockLoopTestImpl< RWL >::run_mixed(), and RWLockLoopTestImpl< RWL >::write_test_loop().
| const unsigned long kPerformanceLoopsNumber = 64000000 |
| const unsigned long kValidationLoopsNumber = 10000 |
Definition at line 29 of file rwlock_tester.h.
| const unsigned long kValidationThreadsNumber = 40 |
Definition at line 28 of file rwlock_tester.h.
| const unsigned long SLEEP_MSEC = 10 |
Definition at line 36 of file rwlock_tester.h.
1.5.5