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