Revert "router: on linux add a mutex around the queue (#6709)" (#6726)

This reverts commit 987623567a.
This commit is contained in:
Austin
2025-05-02 13:53:25 -04:00
committed by GitHub
parent 10693c4569
commit 152b8b1b02
2 changed files with 0 additions and 17 deletions

View File

@@ -8,9 +8,6 @@
#include "PointerQueue.h"
#include "RadioInterface.h"
#include "concurrency/OSThread.h"
#ifdef ARCH_PORTDUINO
#include <mutex>
#endif
/**
* A mesh aware router that supports multiple interfaces.
@@ -22,12 +19,6 @@ class Router : protected concurrency::OSThread, protected PacketHistory
/// forwarded to the phone.
PointerQueue<meshtastic_MeshPacket> fromRadioQueue;
#ifdef ARCH_PORTDUINO
/// linux calls enqueueReceivedMessage from an other thread when receiving UDP packets,
/// to avoid a data race with LoRa, lock that method.
std::mutex queueMutex;
#endif
protected:
RadioInterface *iface = NULL;