VirtualBox

Changeset 64432 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Oct 26, 2016 4:57:32 PM (8 years ago)
Author:
vboxsync
Message:

HostDrivers/Darwin,VBoxGuest/Darwin: Some notes about why we don't require to call task_reference() in initWithTask()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-darwin.cpp

    r63516 r64432  
    984984    if (IOUserClient::initWithTask(OwningTask, pvSecurityId , u32Type))
    985985    {
     986        /*
     987         * In theory we have to call task_reference() to make sure that the task is
     988         * valid during the lifetime of this object. The pointer is only used to check
     989         * for the context this object is called in though and never dereferenced
     990         * or passed to anything which might, so we just skip this step.
     991         */
    986992        m_Task = OwningTask;
    987993        m_pSession = NULL;
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