VirtualBox

Changeset 90433 in vbox for trunk/src


Ignore:
Timestamp:
Jul 30, 2021 3:48:09 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146037
Message:

VMM/PDMCritSectEnter: Added macros for correctly asserting on successfull PDMCritSectEnter calls when rcBusy is VINF_SUCCESS or the caller can't return an error. Makes it easier to spot these compared to generic AssertReleaseRC. bugref:6695

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r90428 r90433  
    518518 *
    519519 * @note    Even callers setting @a rcBusy to VINF_SUCCESS must either handle
    520  *          possible failures in ring-0 or apply an AssertReleaseRC() to the
    521  *          return value of this function.
     520 *          possible failures in ring-0 or apply
     521 *          PDM_CRITSECT_RELEASE_ASSERT_RC(),
     522 *          PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(),
     523 *          PDM_CRITSECT_RELEASE_ASSERT_RC_DRV() or
     524 *          PDM_CRITSECT_RELEASE_ASSERT_RC_USB() to the return value of this
     525 *          function.
    522526 */
    523527VMMDECL(int) PDMCritSectEnter(PVMCC pVM, PPDMCRITSECT pCritSect, int rcBusy)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette