mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Add Device::ResumeTransports
This commit is contained in:
parent
da1c9e4400
commit
ae51ecc659
|
@ -457,11 +457,8 @@ void Device::RunWrapper()
|
||||||
if (rateLogging && rateLogger->joinable()) { rateLogger->join(); }
|
if (rateLogging && rateLogger->joinable()) { rateLogger->join(); }
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// notify transports to resume transfers
|
// notify transports to resume transfers
|
||||||
for (auto& t : fTransports) {
|
ResumeTransports();
|
||||||
t.second->Resume();
|
|
||||||
}
|
|
||||||
|
|
||||||
// change to Error state in case of an exception, to release LogSocketRates
|
// change to Error state in case of an exception, to release LogSocketRates
|
||||||
tools::CallOnDestruction cod([&](){
|
tools::CallOnDestruction cod([&](){
|
||||||
|
@ -773,8 +770,15 @@ void Device::LogSocketRates()
|
||||||
|
|
||||||
void Device::InterruptTransports()
|
void Device::InterruptTransports()
|
||||||
{
|
{
|
||||||
for (auto& transport : fTransports) {
|
for (auto& [transportType, transport] : fTransports) {
|
||||||
transport.second->Interrupt();
|
transport->Interrupt();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void Device::ResumeTransports()
|
||||||
|
{
|
||||||
|
for (auto& [transportType, transport] : fTransports) {
|
||||||
|
transport->Resume();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -789,8 +793,8 @@ void Device::ResetTaskWrapper()
|
||||||
|
|
||||||
void Device::ResetWrapper()
|
void Device::ResetWrapper()
|
||||||
{
|
{
|
||||||
for (auto& transport : fTransports) {
|
for (auto& [transportType, transport] : fTransports) {
|
||||||
transport.second->Reset();
|
transport->Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
Reset();
|
Reset();
|
||||||
|
|
|
@ -590,6 +590,9 @@ class Device
|
||||||
/// Notifies transports to cease any blocking activity
|
/// Notifies transports to cease any blocking activity
|
||||||
void InterruptTransports();
|
void InterruptTransports();
|
||||||
|
|
||||||
|
/// Notifies transports to resume any blocking activity
|
||||||
|
void ResumeTransports();
|
||||||
|
|
||||||
/// Shuts down the transports and the device
|
/// Shuts down the transports and the device
|
||||||
void Exit() {}
|
void Exit() {}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user