mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
shm: add some debug output
This commit is contained in:
parent
36db7ae4b5
commit
e7e8002af9
|
@ -670,7 +670,7 @@ std::vector<std::pair<std::string, bool>> Monitor::Cleanup(const ShmId& shmIdT,
|
||||||
string path = info.fPath.c_str();
|
string path = info.fPath.c_str();
|
||||||
int flags = info.fCreationFlags;
|
int flags = info.fCreationFlags;
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
LOG(info) << "Found RegionInfo with path: '" << path << "', flags: " << flags << ", fDestroyed: " << info.fDestroyed << ".";
|
LOG(info) << "Found UnmanagedRegion with id: " << id << ", path: '" << path << "', flags: " << flags << ", fDestroyed: " << info.fDestroyed << ".";
|
||||||
}
|
}
|
||||||
if (!path.empty()) {
|
if (!path.empty()) {
|
||||||
result.emplace_back(Remove<bipc::file_mapping>(path + "fmq_" + shmId + "_rg_" + to_string(id), verbose));
|
result.emplace_back(Remove<bipc::file_mapping>(path + "fmq_" + shmId + "_rg_" + to_string(id), verbose));
|
||||||
|
|
|
@ -74,6 +74,8 @@ struct UnmanagedRegion
|
||||||
// TODO: refactor this
|
// TODO: refactor this
|
||||||
cfg.size = size;
|
cfg.size = size;
|
||||||
|
|
||||||
|
LOG(debug) << "UnmanagedRegion(): " << fName << " | remote: " << remote << ".";
|
||||||
|
|
||||||
if (!cfg.path.empty()) {
|
if (!cfg.path.empty()) {
|
||||||
fName = std::string(cfg.path + fName);
|
fName = std::string(cfg.path + fName);
|
||||||
|
|
||||||
|
@ -171,6 +173,7 @@ struct UnmanagedRegion
|
||||||
|
|
||||||
~UnmanagedRegion()
|
~UnmanagedRegion()
|
||||||
{
|
{
|
||||||
|
LOG(debug) << "~UnmanagedRegion(): " << fName << " | remote: " << fRemote << ".";
|
||||||
fStopAcks = true;
|
fStopAcks = true;
|
||||||
|
|
||||||
if (fAcksSender.joinable()) {
|
if (fAcksSender.joinable()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user