Fix synchronization bottleneck for high core machines
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <mutex>
|
||||
#include <string>
|
||||
|
||||
extern int64_t nHashCount;
|
||||
|
||||
struct AtomicCounter {
|
||||
std::atomic<uint64_t> value;
|
||||
|
||||
@@ -52,6 +54,8 @@ public:
|
||||
uint64_t threadCount();
|
||||
|
||||
double rate(const AtomicCounter& count);
|
||||
double rate(const int64_t count);
|
||||
|
||||
};
|
||||
|
||||
extern AtomicCounter transactionsValidated;
|
||||
|
||||
Reference in New Issue
Block a user