| 359 | } |
| 360 | |
| 361 | std::unordered_set<std::shared_ptr<core::FlowFile>> BinFiles::FlowFileStore::getNewFlowFiles() { |
| 362 | bool hasNewFlowFiles = true; |
| 363 | if (!has_new_flow_file_.compare_exchange_strong(hasNewFlowFiles, false, std::memory_order_acquire, std::memory_order_relaxed)) { |
| 364 | return {}; |
| 365 | } |
| 366 | std::lock_guard<std::mutex> guard(flow_file_mutex_); |
| 367 | return std::move(incoming_files_); |
| 368 | } |
| 369 | |
| 370 | std::set<std::shared_ptr<core::Connectable>> BinFiles::getOutGoingConnections(const std::string &relationship) const { |
| 371 | auto result = core::Connectable::getOutGoingConnections(relationship); |