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

Commit 433edf43 authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

common::thread_performance_test Remove auto-increment volatile am: ececa1ab

parents 62b5aef3 ececa1ab
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) {