VirtualBox

Changeset 45312 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2013 3:05:29 PM (12 years ago)
Author:
vboxsync
Message:

IOM: Start using the read/write crit sect.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/IOMInternal.h

    r45311 r45312  
    1919#define ___IOMInternal_h
    2020
    21 //#define IOM_WITH_CRIT_SECT_RW
     21#define IOM_WITH_CRIT_SECT_RW
    2222
    2323#include <VBox/cdefs.h>
     
    437437# define IOM_LOCK_EXCL(a_pVM)                   PDMCritSectRwEnterExcl(&(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY)
    438438# define IOM_UNLOCK_EXCL(a_pVM)                 do { PDMCritSectRwLeaveExcl(&(a_pVM)->iom.s.CritSect); } while (0)
    439 # if 0 /* for the time being (the lookup caches needs to be in VMCPU) */
     439# if 0 /* (in case needed for debugging) */
    440440# define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy)    PDMCritSectRwEnterExcl(&(a_pVM)->iom.s.CritSect, (a_rcBusy))
    441441# define IOM_UNLOCK_SHARED(a_pVM)               do { PDMCritSectRwLeaveExcl(&(a_pVM)->iom.s.CritSect); } while (0)
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