/// <summary> /// Send the given Command out across the command-pipe. /// </summary> /// <param name="cmd">the Command to send</param> public void Send(Command cmd) { bool ok; lock (m_sync) { m_commandPipe.Write(ref cmd, false); ok = m_commandPipe.Flush(); } //if (LOG.isDebugEnabled()) // LOG.debug( "{} -> {} / {} {}", new Object[] { Thread.currentThread().getName(), cmd_, cmd_.arg , !ok}); if (!ok) { m_signaler.Send(); } }