VirtualBox

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/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r63510 r64432  
    16601660    if (IOUserClient::initWithTask(OwningTask, pvSecurityId , u32Type))
    16611661    {
     1662        /*
     1663         * In theory we have to call task_reference() to make sure that the task is
     1664         * valid during the lifetime of this object. The pointer is only used to check
     1665         * for the context this object is called in though and never dereferenced
     1666         * or passed to anything which might, so we just skip this step.
     1667         */
    16621668        m_Task = OwningTask;
    16631669        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