| 290 | } |
| 291 | |
| 292 | ProcessInputChannel::~ProcessInputChannel() |
| 293 | { |
| 294 | if ( isRunning() ) { |
| 295 | assert( !_mustQuitMutex.tryLock() ); |
| 296 | assert(!_mustQuit); |
| 297 | _mustQuit = true; |
| 298 | while (_mustQuit) { |
| 299 | _mustQuitCond.wait(&_mustQuitMutex); |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | delete _backgroundIPCServer; |
| 304 | delete _backgroundOutputPipe; |
| 305 | } |
| 306 | |
| 307 | void |
| 308 | ProcessInputChannel::writeToOutputChannel(const QString & message) |