* @brief Returns true when the process or pipe channel is open. */
| 113 | * @brief Returns true when the process or pipe channel is open. |
| 114 | */ |
| 115 | bool IO::Drivers::Process::isOpen() const noexcept |
| 116 | { |
| 117 | if (m_mode == Mode::Launch) |
| 118 | return m_process && m_process->state() == QProcess::Running; |
| 119 | |
| 120 | return m_pipeRunning.load(); |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @brief Returns true when the channel can be read. |