We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce8b4e commit 8d73529Copy full SHA for 8d73529
src/DmaChannelBase.cxx
@@ -75,6 +75,9 @@ void DmaChannelBase::freeUnusedChannelBuffer()
75
for (auto &entry : boost::make_iterator_range(bfs::directory_iterator(dmaPath), {})) {
76
auto bufferId = entry.path().filename().string();
77
if (bfs::is_directory(entry)) {
78
+ if ((mCardDescriptor.cardType == CardType::Crorc) && (stoi(bufferId) != getChannelNumber())) { // don't free another channel's buffer
79
+ continue;
80
+ }
81
std::string mapPath = dmaPath + "/" + bufferId + "/map";
82
std::string freePath = dmaPath + "/free";
83
logger << "Freeing PDA buffer '" + mapPath + "'" << InfoLogger::InfoLogger::endm;
0 commit comments