VirtualBox

Ignore:
Timestamp:
Dec 2, 2018 12:43:41 AM (6 years ago)
Author:
vboxsync
Message:

Main/Guest: Added a few codereview comments, mainly in the guest base class area. Replaced the object ID management in GuestSession with a classic allocation bitmap approach as that's much less memory intensive than 16 byte structs in a insert-only std::map and an additional map tracking free 32-bit IDs after we run out. bugref:9313 [build fix]

File:
1 edited

Legend:

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

    r75861 r75863  
    257257     *  The key specifies the (global) context ID. */
    258258    typedef std::map <uint32_t, SessionObject> SessionObjects;
    259     /** Queue containing context IDs which are no longer in use.
    260      *  Useful for quickly retrieving a new, unused context ID. */
    261     typedef std::deque <uint32_t>              SessionObjectsFree;
    262259
    263260public:
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