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

            // Notify the KCM that we have something for it.
            m_kcm.HandleWmKcmNotification();
        }