StreamScheduler.h File
Stage executor for fair multi-stream scheduling. More...
Included Headers
#include "graph/StageExecutor.h"
#include "graph/nodes/StageNode.h"
#include <cstddef>
#include <cstdint>
#include <deque>
#include <memory>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
Namespaces Index
| namespace | simaai |
| namespace | neat |
| namespace | graph |
| namespace | nodes |
Classes Index
| struct | StreamSchedulerOptions |
| class | StreamScheduler |
Description
Stage executor for fair multi-stream scheduling.
File Listing
The file content with the documentation metadata removed is:
8#include "graph/StageExecutor.h"
9#include "graph/nodes/StageNode.h"
21namespace simaai::neat::graph::nodes {
23enum class StreamDropPolicy {
24 DropOldest = 0,
25 DropNewest,
28struct StreamSchedulerOptions {
29 std::size_t per_stream_queue = 2;
34class StreamScheduler final : public simaai::neat::graph::StageExecutor {
36 explicit StreamScheduler(StreamSchedulerOptions opt);
38 void set_ports(const StagePorts& ports) override;
45 StreamSchedulerOptions opt_;
49 PortId out_port_ = kInvalidPort;
53std::shared_ptr<simaai::neat::graph::Node> StreamSchedulerNode(StreamSchedulerOptions opt = {},
56 std::string output = "out");
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.