VirtualBox

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


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

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

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

Legend:

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

    r85436 r85451  
    375375        }
    376376
     377        /* Drop write lock before creating thread. */
     378        alock.release();
     379
    377380        /* This function delete pTask in case of exceptions,
    378381         * so there is no need in the call of delete operator. */
     
    392395    if (SUCCEEDED(hr))
    393396    {
     397        /* Re-acquire write lock. */
     398        alock.acquire();
     399
    394400        m_DataBase.cTransfersPending++;
    395401
  • 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