monitor::EventMonitor::~EventMonitor() { if (get_lib_store()) { close_lib_store(); } }
/* * Close the library */ int nvm_close_lib() { int rc = NVM_SUCCESS; // remove any simulators that were loaded // don't care about any failures here because there may // not be a simulator loaded nvm_remove_simulator(); // close the database if (close_lib_store() != COMMON_SUCCESS) { rc = NVM_ERR_UNKNOWN; } // clean up the locks if (!mutex_delete((OS_MUTEX*)&g_eventmonitor_lock, NULL)) { rc = NVM_ERR_UNKNOWN; } if (!mutex_delete((OS_MUTEX*)&g_context_lock, NULL)) { rc = NVM_ERR_UNKNOWN; } return rc; }
/* * Close the library */ int nvm_close_lib() { int rc = NVM_SUCCESS; // remove any simulators that were loaded // don't care about any failures here because there may // not be a simulator loaded nvm_remove_simulator(); // close the database if (close_lib_store() != NVM_SUCCESS) { rc = NVM_ERR_UNKNOWN; } else { // clean up the locks rc = wbem::lib_interface::apiMutexDelete(); } return rc; }