search for: hostsingleton

Displaying 2 results from an estimated 2 matches for "hostsingleton".

2010 Apr 15
1
[PATCH matahari] Refactored the Host agent.
...ter = cpus.erase(iter); - } - // Get rid of the NICWrapper objects for this host - for (vector<NICWrapper*>::iterator iter = nics.begin(); iter != nics.end();) { - delete (*iter); - iter = nics.erase(iter); - } -} - -void HostWrapper::disposeHostWrapper() -{ - if (hostSingleton == NULL) - return; - - hostSingleton->cleanupQMFObjects(); - hostSingleton->cleanupMemberObjects(); - - delete hostSingleton; - hostSingleton = NULL; -} - -HostWrapper* HostWrapper::setupHostWrapper(ManagementAgent *agent) -{ - if (hostSingleton != NULL) - return...
2010 Mar 15
0
[PATCH] Updated the list of ignored files and fixed whitespace issues.
...:iterator iter = nics.begin(); - iter!= nics.end(); - iter++) { + for (vector<NICWrapper*>::iterator iter = nics.begin(); + iter!= nics.end(); + iter++) { (*iter)->cleanupQMFObject(); } } @@ -142,7 +142,7 @@ void HostWrapper::disposeHostWrapper() hostSingleton->cleanupQMFObjects(); hostSingleton->cleanupMemberObjects(); - + delete hostSingleton; hostSingleton = NULL; } @@ -197,7 +197,7 @@ HostWrapper* HostWrapper::setupHostWrapper(ManagementAgent *agent) host->memory = info.memory; } } -...