public Form1() { InitializeComponent(); V = this; m_log = new Queue <string>(); FilePipe.Log = (s) => { lock (m_log) { m_log.Enqueue(s); } }; m_pipe = new FilePipe("mon"); m_pipe.Start(); }
public void Start() { //Log("netcomm:start"); m_bReqAbort = false; m_bEnd = false; m_mtx = new object(); m_pipe = new FilePipe(m_myname); m_pipe.Start(); m_sendlog = new Queue <string>(); m_thread = new Thread(Work); m_thread.IsBackground = true; m_thread.Priority = ThreadPriority.AboveNormal; m_thread.Start(); slagtool.util.SetRemoteLogFunc(wk.SendWriteLine, wk.SendWrite); }