Go to the documentation of this file. 1 #ifndef BENCHMARK_THREAD_MANAGER_H
2 #define BENCHMARK_THREAD_MANAGER_H
6 #include "benchmark/benchmark.h"
36 [
this]() { return alive_threads_ == 0; });
64 #endif // BENCHMARK_THREAD_MANAGER_H
bool wait() EXCLUDES(lock_)
std::string report_label_
void NotifyThreadComplete() EXCLUDES(end_cond_mutex_)
Barrier start_stop_barrier_
Mutex & GetBenchmarkMutex() const RETURN_CAPABILITY(benchmark_mutex_)
std::string error_message_
void removeThread() EXCLUDES(lock_)
IterationCount iterations
std::condition_variable Condition
std::atomic< int > alive_threads_
#define RETURN_CAPABILITY(x)
ThreadManager(int num_threads)
void WaitForAllThreads() EXCLUDES(end_cond_mutex_)
bool StartStopBarrier() EXCLUDES(end_cond_mutex_)
std::map< std::string, Counter > UserCounters
static volatile int num_threads
MutexLockImp & native_handle()
GUARDED_BY(GetBenchmarkMutex()) Result results
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:36