Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ececa1ab authored by Chris Manton's avatar Chris Manton
Browse files

common::thread_performance_test Remove auto-increment volatile

Bug: 339523541
Test: m .
Flag: EXEMPT, Test Infrastructure

Change-Id: I166c99049f02a278e94704a4bfe25942a59aabaa
parent 0fc4753e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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) {