MCPcopy Create free account
hub / github.com/BabitMF/bmf / InputStream

Method InputStream

bmf/engine/c_engine/src/input_stream.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37InputStream::InputStream(int stream_id, StreamConfig &stream_config,
38 int node_id,
39 std::function<void(int, bool)> &throttled_cb,
40 size_t max_queue_size)
41 : stream_id_(stream_id), identifier_(stream_config.get_identifier()),
42 alias_(stream_config.get_alias()), notify_(stream_config.get_notify()),
43 node_id_(node_id), throttled_cb_(throttled_cb),
44 max_queue_size_(max_queue_size),
45 queue_(std::make_shared<SafeQueue<Packet>>()) {
46 queue_->set_identifier(identifier_);
47}
48
49// InputStream::InputStream(const InputStream &input_stream) {
50// stream_id_ = input_stream.stream_id_;

Callers

nothing calls this directly

Calls 4

get_identifierMethod · 0.45
get_aliasMethod · 0.45
get_notifyMethod · 0.45
set_identifierMethod · 0.45

Tested by

no test coverage detected