Beispiel #1
0
 /// <summary>
 /// Notify the WM that something occurred. Assume mutex is locked.
 /// </summary>
 private void NotifyWm()
 {
     if (m_wmWakeUpMsg == null)
     {
         m_wmWakeUpMsg = new KcdWmWakeUpMsg(this);
         KBase.ExecInUI(new KBase.EmptyDelegate(m_wmWakeUpMsg.Run));
     }
 }
Beispiel #2
0
        ////////////////////////////////////////////
        // Interface methods for internal events. //
        ////////////////////////////////////////////

        /// <summary>
        /// Internal handler for KcdWmWakeUpMsg.
        /// </summary>
        public void HandleWmWakeUp(KcdWmWakeUpMsg msg)
        {
            lock (m_mutex)
            {
                // Clear the posted message reference.
                Debug.Assert(m_wmWakeUpMsg == msg);
                m_wmWakeUpMsg = null;
            }

            // Notify the WM state machine that we have something for it.
            DoOnEvent();
        }
Beispiel #3
0
 /// <summary>
 /// Notify the WM that something occurred. Assume mutex is locked.
 /// </summary>
 private void NotifyWm()
 {
     if (m_wmWakeUpMsg == null)
     {
         m_wmWakeUpMsg = new KcdWmWakeUpMsg(this);
         KBase.ExecInUI(new KBase.EmptyDelegate(m_wmWakeUpMsg.Run));
     }
 }
Beispiel #4
0
        ////////////////////////////////////////////
        // Interface methods for internal events. //
        ////////////////////////////////////////////
        /// <summary>
        /// Internal handler for KcdWmWakeUpMsg.
        /// </summary>
        public void HandleWmWakeUp(KcdWmWakeUpMsg msg)
        {
            lock (m_mutex)
            {
                // Clear the posted message reference.
                Debug.Assert(m_wmWakeUpMsg == msg);
                m_wmWakeUpMsg = null;
            }

            // Notify the WM state machine that we have something for it.
            DoOnEvent();
        }