예제 #1
0
파일: EAnpBroker.cs 프로젝트: tmbx/etkwm
 /// <summary>
 /// Start the broker. Do not call this unless TryStop() returns true.
 /// </summary>
 public virtual void Start()
 {
     Debug.Assert(m_thread == null);
     if (this is EAnpClientBroker) m_thread = new EAnpClientThread(this as EAnpClientBroker);
     else m_thread = new EAnpServerThread(this as EAnpServerBroker);
     m_thread.Start();
 }
예제 #2
0
파일: EAnpThread.cs 프로젝트: tmbx/etkwm
 public EAnpThreadChannel(EAnpBaseThread thread)
 {
     Worker = thread;
     ChannelID = Worker.Broker.InternalNextChannelID++;
 }
예제 #3
0
파일: EAnpBroker.cs 프로젝트: tmbx/etkwm
 /// <summary>
 /// Called by the worker thread when it has completed.
 /// </summary>
 public void InternalThreadCompletion()
 {
     m_thread = null;
     if (OnClose != null) OnClose(this, null);
 }