Changeset 90346 in vbox for trunk/src/VBox/VMM/include/IOMInternal.h
- Timestamp:
- Jul 26, 2021 7:55:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/IOMInternal.h
r89088 r90346 584 584 # define IOM_IS_EXCL_LOCK_OWNER(a_pVM) PDMCritSectRwIsWriteOwner(&(a_pVM)->iom.s.CritSect) 585 585 #else 586 # define IOM_LOCK_EXCL(a_pVM) PDMCritSectEnter( &(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY)587 # define IOM_UNLOCK_EXCL(a_pVM) do { PDMCritSectLeave( &(a_pVM)->iom.s.CritSect); } while (0)588 # define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy) PDMCritSectEnter( &(a_pVM)->iom.s.CritSect, (a_rcBusy))589 # define IOM_UNLOCK_SHARED(a_pVM) do { PDMCritSectLeave( &(a_pVM)->iom.s.CritSect); } while (0)590 # define IOM_IS_SHARED_LOCK_OWNER(a_pVM) PDMCritSectIsOwner( &(a_pVM)->iom.s.CritSect)591 # define IOM_IS_EXCL_LOCK_OWNER(a_pVM) PDMCritSectIsOwner( &(a_pVM)->iom.s.CritSect)586 # define IOM_LOCK_EXCL(a_pVM) PDMCritSectEnter((a_pVM), &(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY) 587 # define IOM_UNLOCK_EXCL(a_pVM) do { PDMCritSectLeave((a_pVM), &(a_pVM)->iom.s.CritSect); } while (0) 588 # define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy) PDMCritSectEnter((a_pVM), &(a_pVM)->iom.s.CritSect, (a_rcBusy)) 589 # define IOM_UNLOCK_SHARED(a_pVM) do { PDMCritSectLeave((a_pVM), &(a_pVM)->iom.s.CritSect); } while (0) 590 # define IOM_IS_SHARED_LOCK_OWNER(a_pVM) PDMCritSectIsOwner((a_pVM), &(a_pVM)->iom.s.CritSect) 591 # define IOM_IS_EXCL_LOCK_OWNER(a_pVM) PDMCritSectIsOwner((a_pVM), &(a_pVM)->iom.s.CritSect) 592 592 #endif 593 593 #define IOM_LOCK_SHARED(a_pVM) IOM_LOCK_SHARED_EX(a_pVM, VERR_SEM_BUSY)
Note:
See TracChangeset
for help on using the changeset viewer.