fgerlits commented on a change in pull request #1013:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1013#discussion_r580932043
##########
File path: libminifi/src/core/Processor.cpp
##########
@@ -223,7 +223,18 @@ bool Processor::flowFilesQueued() {
return false;
}
-bool Processor::flowFilesOutGoingFull() {
+uint64_t Processor::numIncomingFlowFilesQueued() const {
+ std::lock_guard<std::mutex> lock{mutex_};
+
+ uint64_t sum = 0;
+ for (const auto& connectable : _incomingConnections) {
+ auto connection = std::static_pointer_cast<Connection>(connectable);
Review comment:
It does seem like we always store Connections in it, so this is a good
idea, although not related to this change.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]