diff options
author | 2024-05-08 16:10:58 -0700 | |
---|---|---|
committer | 2024-05-09 19:02:59 +0000 | |
commit | ececa1abc0f710595de8fe0a5fd8ce943dc9284c (patch) | |
tree | 841f20ab78802235245fe1cbd4b35c96356b9cfb | |
parent | 0fc4753e9cec1d9223eefdb38efd3b159f41ffc9 (diff) |
common::thread_performance_test Remove auto-increment volatile
Bug: 339523541
Test: m .
Flag: EXEMPT, Test Infrastructure
Change-Id: I166c99049f02a278e94704a4bfe25942a59aabaa
-rw-r--r-- | system/common/test/thread_performance_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/system/common/test/thread_performance_test.cc b/system/common/test/thread_performance_test.cc index af2d1fcebe..c8805baafa 100644 --- a/system/common/test/thread_performance_test.cc +++ b/system/common/test/thread_performance_test.cc @@ -24,7 +24,6 @@ #include <chrono> #include <future> -#include <iostream> #include <thread> #include "abstract_message_loop.h" @@ -37,7 +36,7 @@ using namespace bluetooth; #define NUM_MESSAGES_TO_SEND 100000 -volatile static int g_counter = 0; +static int g_counter = 0; static std::unique_ptr<std::promise<void>> g_counter_promise = nullptr; void callback_batch(fixed_queue_t* queue, void* data) { |