void Node::dirtyClientExit() { const Pipes& pipes = getPipes(); for( PipesCIter i = pipes.begin(); i != pipes.end(); ++i ) { Pipe* pipe = *i; pipe->cancelThread(); } transmitter.getQueue().wakeup(); transmitter.join(); }
void Node::dirtyClientExit() { const Pipes& pipes = getPipes(); for( PipesCIter i = pipes.begin(); i != pipes.end(); ++i ) { Pipe* pipe = *i; pipe->cancelThread(); } getTransmitterQueue()->push( co::ICommand( )); // wake up to exit _impl->transmitter.join(); }