VirtualBox

Changeset 53343 in vbox for trunk


Ignore:
Timestamp:
Nov 18, 2014 7:53:24 AM (10 years ago)
Author:
vboxsync
Message:

Devices/DevLsiLogic: fixed race

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/DevLsiLogicSCSI.cpp

    r53341 r53343  
    12851285            /* Send notification to R3 if there is not one sent already. Do this
    12861286             * only if the worker thread is not sleeping or might go sleeping. */
    1287             if (ASMAtomicReadBool(&pThis->fWrkThreadSleeping))
     1287            if (!ASMAtomicXchgBool(&pThis->fNotificationSent, true))
    12881288            {
    1289                 if (!ASMAtomicXchgBool(&pThis->fNotificationSent, true))
     1289                if (ASMAtomicReadBool(&pThis->fWrkThreadSleeping))
    12901290                {
    12911291#ifdef IN_RC
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