Rename Device::UnblockTransports to Device::InterruptTransports

This commit is contained in:
Alexey Rybalchenko 2023-02-22 12:21:33 +01:00
parent 1076fbf824
commit da1c9e4400
2 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ Device::Device(ProgOptions* config, tools::Version version)
switch (transition) {
case Transition::Stop:
UnblockTransports();
InterruptTransports();
break;
default:
break;
@ -492,7 +492,7 @@ void Device::RunWrapper()
// if Run() exited and the state is still RUNNING, transition to READY.
if (!NewStatePending()) {
UnblockTransports();
InterruptTransports();
ChangeState(Transition::Stop);
}
@ -771,7 +771,7 @@ void Device::LogSocketRates()
}
}
void Device::UnblockTransports()
void Device::InterruptTransports()
{
for (auto& transport : fTransports) {
transport.second->Interrupt();

View File

@ -588,7 +588,7 @@ class Device
void ResetWrapper();
/// Notifies transports to cease any blocking activity
void UnblockTransports();
void InterruptTransports();
/// Shuts down the transports and the device
void Exit() {}