VirtualBox

Changeset 63180 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Aug 8, 2016 3:47:28 PM (8 years ago)
Author:
vboxsync
Message:

GuestDnDTargetImpl.cpp,GuestDnDSourceImpl.cpp: @todo r=bird: Pointed out race condition in thread task.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestDnDSourceImpl.cpp

    r63159 r63180  
    381381        /* This function delete pTask in case of exceptions,
    382382         * so there is no need in the call of delete operator. */
     383/** @todo r=bird: The code using hThreadRcv is racing the thread termination. Since the thread isn't
     384 * created waitable, the handle goes away if we it terminates before our RTThreadUserWait call returns. */
    383385        hr = pTask->createThread(&hThreadRcv);
    384386
  • trunk/src/VBox/Main/src-client/GuestDnDTargetImpl.cpp

    r63159 r63180  
    653653        //this function delete pTask in case of exceptions, so there is no need in the call of delete operator
    654654        //pSendCtx is deleted in the pTask destructor
     655/** @todo r=bird: The code using hThreadSend is racing the thread termination. Since the thread isn't
     656 * created waitable, the handle goes away if we it terminates before our RTThreadUserWait call returns. */
    655657        hr = pTask->createThread(&rcThreadSend);
    656658
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