| 61 | } |
| 62 | |
| 63 | bool IChannelDriver::waitForReady(u32 timeoutMs) { |
| 64 | // wait until the driver is in a READY state. |
| 65 | bool ok = waitForCondition([this]() { |
| 66 | auto state = poll(); |
| 67 | return state.state == IChannelDriver::DriverState::READY; |
| 68 | }, timeoutMs); |
| 69 | return ok; |
| 70 | } |
| 71 | |
| 72 | bool IChannelDriver::waitForReadyOrDraining(u32 timeoutMs) { |
| 73 | // wait until the driver is in a READY or DRAINING state. |
no outgoing calls
no test coverage detected