diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-23 02:11:05 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-23 02:11:05 +0000 |
commit | dd534e700dfafab38f04cf92c9bd824f113cf4bd (patch) | |
tree | e9a2fedf55835052b36beaf2fc40a98d2eccc8a5 /benchmarks/pthread_benchmark.cpp | |
parent | 26b816e3ddc4127b2d9e9b282982fa36941246f5 (diff) | |
parent | 708013e81c289b059399502dad55d534b150d742 (diff) |
Snap for 6701932 from 708013e81c289b059399502dad55d534b150d742 to sc-release
Change-Id: I31f961d20b2c644cfe88d8bb0c946524e312b55c
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); |