Changeset 90347 in vbox for trunk/src/VBox/VMM/include/IOMInternal.h
- Timestamp:
- Jul 26, 2021 8:36:28 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/include/IOMInternal.h
r90346 r90347 571 571 /* IOM locking helpers. */ 572 572 #ifdef IOM_WITH_CRIT_SECT_RW 573 # define IOM_LOCK_EXCL(a_pVM) PDMCritSectRwEnterExcl( &(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY)574 # define IOM_UNLOCK_EXCL(a_pVM) do { PDMCritSectRwLeaveExcl( &(a_pVM)->iom.s.CritSect); } while (0)573 # define IOM_LOCK_EXCL(a_pVM) PDMCritSectRwEnterExcl((a_pVM), &(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY) 574 # define IOM_UNLOCK_EXCL(a_pVM) do { PDMCritSectRwLeaveExcl((a_pVM), &(a_pVM)->iom.s.CritSect); } while (0) 575 575 # if 0 /* (in case needed for debugging) */ 576 576 # define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy) PDMCritSectRwEnterExcl(&(a_pVM)->iom.s.CritSect, (a_rcBusy)) … … 578 578 # define IOM_IS_SHARED_LOCK_OWNER(a_pVM) PDMCritSectRwIsWriteOwner(&(a_pVM)->iom.s.CritSect) 579 579 # else 580 # define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy) PDMCritSectRwEnterShared( &(a_pVM)->iom.s.CritSect, (a_rcBusy))581 # define IOM_UNLOCK_SHARED(a_pVM) do { PDMCritSectRwLeaveShared( &(a_pVM)->iom.s.CritSect); } while (0)582 # define IOM_IS_SHARED_LOCK_OWNER(a_pVM) PDMCritSectRwIsReadOwner( &(a_pVM)->iom.s.CritSect, true)580 # define IOM_LOCK_SHARED_EX(a_pVM, a_rcBusy) PDMCritSectRwEnterShared((a_pVM), &(a_pVM)->iom.s.CritSect, (a_rcBusy)) 581 # define IOM_UNLOCK_SHARED(a_pVM) do { PDMCritSectRwLeaveShared((a_pVM), &(a_pVM)->iom.s.CritSect); } while (0) 582 # define IOM_IS_SHARED_LOCK_OWNER(a_pVM) PDMCritSectRwIsReadOwner((a_pVM), &(a_pVM)->iom.s.CritSect, true) 583 583 # endif 584 # define IOM_IS_EXCL_LOCK_OWNER(a_pVM) PDMCritSectRwIsWriteOwner( &(a_pVM)->iom.s.CritSect)584 # define IOM_IS_EXCL_LOCK_OWNER(a_pVM) PDMCritSectRwIsWriteOwner((a_pVM), &(a_pVM)->iom.s.CritSect) 585 585 #else 586 586 # define IOM_LOCK_EXCL(a_pVM) PDMCritSectEnter((a_pVM), &(a_pVM)->iom.s.CritSect, VERR_SEM_BUSY)
Note:
See TracChangeset
for help on using the changeset viewer.