CHardwareMonitor::~CHardwareMonitor(void) { #ifdef WIN32 ExitWMI(); #endif StopHardwareMonitor(); }
bool CHardwareMonitor::StopHardware() { if (m_thread!=NULL) { m_stoprequested = true; m_thread->join(); m_thread.reset(); } #ifdef WIN32 ExitWMI(); #endif m_bIsStarted = false; return true; }