Example #1
0
 /// <summary>
 /// Notify the KCM that something occurred. Assume mutex is locked.
 /// </summary>
 private void NotifyTcm()
 {
     if (m_tcm != null && m_tcmWakeUpMsg == null)
     {
         m_tcmWakeUpMsg = new WkbKcmWakeUpMsg(this);
         m_tcm.PostToWorker(m_tcmWakeUpMsg);
     }
 }
Example #2
0
        /// <summary>
        /// Internal handler for WkbKcmWakeUpMsg.
        /// </summary>
        public void HandleKcmWakeUp(WkbKcmWakeUpMsg msg)
        {
            lock (m_mutex)
            {
                // Clear the posted message reference.
                Debug.Assert(m_tcmWakeUpMsg == msg);
                m_tcmWakeUpMsg = null;
            }

            // Notify the KCM that we have something for it.
            m_tcm.HandleWmTcmNotification();
        }