示例#1
0
        public void Dispose()
        {
            if (!m_disposed)
            {
                // Shut down worker thread
                m_outstandingConnections.Clear();
                m_newCommand.Set();
                m_scheduler.Join();

                // Release HW resources
                m_driver.Disconnect();
                m_driver.Dispose();
            }

            s_manager  = null;
            m_disposed = true;
        }
示例#2
0
            public override void Execute(BTConnection conn, BTDriver driver)
            {
                this.Success = driver.Disconnect();

                conn.Connected = !this.Success;
            }
            public override void Execute(BTConnection conn, BTDriver driver)
            {
                this.Success = driver.Disconnect();

                conn.Connected = !this.Success;
            }