VirtualBox

Changeset 92876 in vbox


Ignore:
Timestamp:
Dec 12, 2021 3:00:02 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148824
Message:

Main/GuestSessionImpl: Comment update, two todos. bugref:9320

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

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

    r92627 r92876  
    242242    enum SESSIONOBJECTTYPE
    243243    {
     244        /** @todo r=bird: The tradition is to start at = 1, leaving 0 for invalid or
     245         * unused to catch uninitialized data.  You do not number the other enum values.
     246         * The 32BIT_HACK is only needed for externally visible stuff that might be used
     247         * by with different compiler options.
     248         *
     249         * As noted elsewhere already, SESSIONOBJECTTYPE_ANONYMOUS isn't used
     250         * anywhere can be removed till such time as it is needed.  Try to not think
     251         * too far ahead but if you do, please leave some more useful clues that
     252         * "Anonymous object" about the intent. */
    244253        /** Anonymous object. */
    245254        SESSIONOBJECTTYPE_ANONYMOUS  = 0,
     
    263272        /** The object type. */
    264273        SESSIONOBJECTTYPE enmType;
    265         /** Weak pointer to the object itself. */
     274        /** Weak pointer to the object itself.
     275         * Is NULL for SESSIONOBJECTTYPE_SESSION because GuestSession doesn't
     276         * inherit from GuestObject. */
    266277        GuestObject      *pObject;
    267278    };
     
    269280    /** Map containing all objects bound to a guest session.
    270281     *  The key specifies the (global) context ID. */
    271     typedef std::map <uint32_t, SessionObject> SessionObjects;
     282    typedef std::map<uint32_t, SessionObject> SessionObjects;
    272283
    273284public:
  • trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp

    r92866 r92876  
    12491249        pCtxCb->uProtocol = mData.mProtocolVersion;
    12501250
     1251        /** @todo r=bird: What is the meaning of this secondary lookup?  You've got the
     1252         * object pointer (except for SESSION where it's NULL because GuestSession
     1253         * doesn't inherit from GuestObject), and can just use the type to upcast it to
     1254         * grab a reference then call i_callbackDispatcher.
     1255         *
     1256         * Also, SESSIONOBJECTTYPE_ANONYMOUS is not used to remove it till needed.
     1257         * Don't think too far ahead, and when you do, please express why you think it
     1258         * is needed (the documentation of SESSIONOBJECTTYPE_ANONYMOUS is only repeating
     1259         * the obvious and not enlightening as to why you though it might come in
     1260         * useful).
     1261         */
    12511262        switch (itObjs->second.enmType)
    12521263        {
Note: See TracChangeset for help on using the changeset viewer.

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