VirtualBox

Ignore:
Timestamp:
Nov 8, 2024 10:45:15 PM (3 months ago)
Author:
vboxsync
Message:

Main/ObjectsTracker.h/cpp: Build fix - the extpack solaris VM doesn't have std::unordered_map, so we have to use std::map or something else. Fixed atomic fFinish handling. jiraref:VBP-1187

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ObjectsTracker.h

    r106891 r106900  
    3333
    3434#include <set>
    35 #include <unordered_map>
     35#include <map>
    3636#include <vector>
    3737#include <string>
     
    150150};
    151151
     152/** The string representation for object IDs in the internal map.
     153 * @todo r=bird: Why are you using std::string here? We use
     154 *       should use com::Utf8Str where possible. In this case, though, it's a
     155 *       com::Guid which would have much more efficient storage compared
     156 *       to both the string variants... */
     157#if 1
     158typedef std::string ObjIdString_T;
     159#else
     160typedef com::Utf8Str ObjIdString_T;
     161#endif
     162
    152163/////////////////////////////////////////////////////////////////////////////
    153164// TrackedObjectsCollector
    154 /////////////////////////////////////////////////////////////////////////////
     165///////////////////////////////////////////////////////////////////////////// 
    155166class TrackedObjectsCollector
    156167{
     
    160171    std::set<com::Utf8Str> m_trackedObjectIds;//Full list of valid + invalid objects
    161172    std::set<com::Utf8Str> m_trackedInvalidObjectIds;//List of invalid objects only
    162     std::unordered_map<std::string, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data
     173    std::map<ObjIdString_T, TrackedObjectData> m_trackedObjectsData;//Mapping Object Id -> Object Data
    163174
    164175    uint64_t m_Added;//Counter of the added objects
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette