mirror of
https://github.com/google/benchmark.git
synced 2025-04-29 14:30:37 +08:00
Second thread sanitzer try
This commit is contained in:
parent
d9a71d01f4
commit
a8fc4af294
@ -121,7 +121,7 @@ void BenchmarkInstance::Teardown() const {
|
||||
}
|
||||
|
||||
void MergeResults(const State& st, const ThreadTimer* timer,
|
||||
ThreadManager* manager) NO_THREAD_SAFETY_ANALYSIS {
|
||||
ThreadManager* manager) REQUIRES(manager->benchmark_mutex_) {
|
||||
ThreadManager::Result& results = manager->results;
|
||||
results.iterations += st.iterations();
|
||||
results.cpu_time_used += timer->cpu_time_used();
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
#include "benchmark/benchmark.h"
|
||||
#include "commandlineflags.h"
|
||||
#include "thread_manager.h"
|
||||
#include "mutex.h"
|
||||
|
||||
namespace benchmark {
|
||||
@ -85,7 +86,7 @@ bool FindBenchmarksInternal(const std::string& re,
|
||||
bool IsZero(double n);
|
||||
|
||||
void MergeResults(const State& st, const ThreadTimer* timer,
|
||||
ThreadManager* manager) REQUIRES(benchmark_mutex_);
|
||||
ThreadManager* manager) REQUIRES(manager->benchmark_mutex_);
|
||||
|
||||
BENCHMARK_EXPORT
|
||||
ConsoleReporter::OutputOptions GetOutputOptions(bool force_no_color = false);
|
||||
|
Loading…
Reference in New Issue
Block a user