VirtualBox

Changeset 1084 in vbox for trunk


Ignore:
Timestamp:
Feb 28, 2007 8:33:39 AM (18 years ago)
Author:
vboxsync
Message:

VBoxGuest: atomic access to event type mask

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/VBoxGuest/VBoxGuest.cpp

    r442 r1084  
    381381{
    382382    _asm {
    383         btr PVBOXGUESTDEVEXT[ecx].u32Events, edx;
     383        lock btr PVBOXGUESTDEVEXT[ecx].u32Events, edx;
    384384        setc al;
    385385        movzx eax, al;
     
    889889                     req->events));
    890890
    891             pDevExt->u32Events |= req->events;
     891            ASMAtomicOrU32((uint32_t *)&pDevExt->u32Events, req->events);
    892892            IoRequestDpc(pDevExt->deviceObject, pDevExt->currentIrp, NULL);
    893893        }
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