Example #1
0
 /// <summary>
 /// Start the KMOD thread and send it the connect command.
 /// </summary>
 private void StartKmodThread()
 {
     Debug.Assert(m_curThread == null);
     Debug.Assert(m_curCommand == null);
     m_curThread = new KmodThread(this);
     m_curThread.Start();
     m_curCommand = new KmodThreadCommand(m_curThread, new K3p.k3p_connect(), true);
     m_curThread.PostToWorker(m_curCommand);
 }
Example #2
0
        public void PostTransactionCommand(KmodTransaction transaction, K3pMsg msg, bool haveResultFlag)
        {
            Debug.Assert(transaction == m_curTransaction);
            Debug.Assert(IsTransactionExecuting());
            Debug.Assert(IsThreadReadyForUserCommand());
            KmodThreadCommand cmd = new KmodThreadCommand(m_curThread, msg, haveResultFlag);

            m_curThread.PostToWorker(cmd);
            m_curCommand = haveResultFlag ? cmd : null;
        }