MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / countQueueItem

Function countQueueItem

ESP32_AP-Flasher/src/newproto.cpp:930–937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930uint16_t countQueueItem(const uint8_t* targetMac) {
931 std::unique_lock<std::mutex> lock(queueMutex);
932 int count = std::count_if(pendingQueue.begin(), pendingQueue.end(),
933 [targetMac](const PendingItem& item) {
934 return memcmp(item.pendingdata.targetMac, targetMac, sizeof(item.pendingdata.targetMac)) == 0;
935 });
936 return count;
937}
938
939PendingItem* getQueueItem(const uint8_t* targetMac) {
940 return getQueueItem(targetMac, 0);

Callers 7

init_webFunction · 0.85
prepareCancelPendingFunction · 0.85
prepareIdleReqFunction · 0.85
processXferCompleteFunction · 0.85
processDataReqFunction · 0.85
checkQueueFunction · 0.85
queueDataAvailFunction · 0.85

Calls 3

memcmpFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected