VirtualBox

Ignore:
Timestamp:
Jul 24, 2020 8:45:54 AM (4 years ago)
Author:
vboxsync
Message:

DnD/Main: Release and re-acquire write locks before/after creating worker threads.

File:
1 edited

Legend:

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

    r85423 r85451  
    661661        }
    662662
     663        /* Drop write lock before creating thread. */
     664        alock.release();
     665
    663666        /* This function delete pTask in case of exceptions,
    664667         * so there is no need in the call of delete operator. */
     
    678681    if (SUCCEEDED(hr))
    679682    {
     683        /* Re-acquire write lock. */
     684        alock.acquire();
     685
    680686        m_DataBase.cTransfersPending++;
    681687
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