diff options
Diffstat (limited to 'benchmarks/pthread_benchmark.cpp')
-rw-r--r-- | benchmarks/pthread_benchmark.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/benchmarks/pthread_benchmark.cpp b/benchmarks/pthread_benchmark.cpp index 856f1502e..9a68a12d0 100644 --- a/benchmarks/pthread_benchmark.cpp +++ b/benchmarks/pthread_benchmark.cpp @@ -53,14 +53,15 @@ static void BM_pthread_setspecific(benchmark::State& state) { } BIONIC_BENCHMARK(BM_pthread_setspecific); -static void NoOpPthreadOnceInitFunction() {} +static void DummyPthreadOnceInitFunction() { +} static void BM_pthread_once(benchmark::State& state) { static pthread_once_t once = PTHREAD_ONCE_INIT; - pthread_once(&once, NoOpPthreadOnceInitFunction); + pthread_once(&once, DummyPthreadOnceInitFunction); while (state.KeepRunning()) { - pthread_once(&once, NoOpPthreadOnceInitFunction); + pthread_once(&once, DummyPthreadOnceInitFunction); } } BIONIC_BENCHMARK(BM_pthread_once); |