public void Shutdown() { lock (m_lock) { m_samplingThread = null; m_shutdownEvent.Set(); m_items.Clear(); } }