mirror of
https://github.com/liquidraver/ZephCore.git
synced 2026-10-22 16:41:30 +00:00
First iteration that seems to work
This commit is contained in:
commit
8d1823d0b6
205 files changed
+41989
No files matched your search
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
* Static pool PacketManager
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <mesh/Dispatcher.h>
|
||||
|
||||
namespace mesh {
|
||||
|
||||
class StaticPoolPacketManager : public PacketManager {
|
||||
public:
|
||||
Packet *allocNew() override;
|
||||
void free(Packet *packet) override;
|
||||
void queueOutbound(Packet *packet, uint8_t priority, uint32_t scheduled_for) override;
|
||||
Packet *getNextOutbound(uint32_t now) override;
|
||||
int getOutboundCount(uint32_t now) const override;
|
||||
int getFreeCount() const override;
|
||||
Packet *getOutboundByIdx(int i) override;
|
||||
Packet *removeOutboundByIdx(int i) override;
|
||||
void queueInbound(Packet *packet, uint32_t scheduled_for) override;
|
||||
Packet *getNextInbound(uint32_t now) override;
|
||||
};
|
||||
|
||||
} /* namespace mesh */
|
||||
Reference in new issue
Block a user