Skip to content

Commit c8c7165

Browse files
committed
Document 0xFFFFFFFF sentinel for getOutboundCount/countBefore
1 parent ba54093 commit c8c7165

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Dispatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class PacketManager {
8989

9090
virtual void queueOutbound(Packet* packet, uint8_t priority, uint32_t scheduled_for) = 0;
9191
virtual Packet* getNextOutbound(uint32_t now) = 0; // by priority
92-
virtual int getOutboundCount(uint32_t now) const = 0;
92+
virtual int getOutboundCount(uint32_t now) const = 0; // pass now=0xFFFFFFFF to count all
9393
virtual int getFreeCount() const = 0;
9494
virtual Packet* getOutboundByIdx(int i) = 0;
9595
virtual Packet* removeOutboundByIdx(int i) = 0;

src/helpers/StaticPoolPacketManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class PacketQueue {
1313
mesh::Packet* get(uint32_t now);
1414
bool add(mesh::Packet* packet, uint8_t priority, uint32_t scheduled_for);
1515
int count() const { return _num; }
16-
int countBefore(uint32_t now) const;
16+
int countBefore(uint32_t now) const; // pass now=0xFFFFFFFF to count all
1717
mesh::Packet* itemAt(int i) const { return _table[i]; }
1818
mesh::Packet* removeByIdx(int i);
1919
};

0 commit comments

Comments
 (0)