VirtualBox

Changeset 25519 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 20, 2009 4:41:19 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56192
Message:

iprt/lockvalidator.h: Added a enabled setting to assist testing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/lockvalidator.h

    r25508 r25519  
    103103    /** Magic value (RTLOCKVALIDATORREC_MAGIC). */
    104104    uint32_t                            u32Magic;
     105    /** Whether it's enabled or not. */
     106    bool                                fEnabled;
    105107    /** Reserved. */
    106     uint32_t                            u32Reserved;
     108    bool                                afReserved[3];
    107109    /** Source position where the lock was taken. */
    108110    RTLOCKVALIDATORSRCPOS               SrcPos;
     
    186188     * using the table at that point. */
    187189    bool volatile                       fReallocating;
     190    /** Whether it's enabled or not. */
     191    bool                                fEnabled;
    188192    /** Alignment padding. */
    189     bool                                afPadding[3];
     193    bool                                afPadding[2];
    190194    /** Pointer to a table containing pointers to records of all the owners. */
    191195    R3R0PTRTYPE(PRTLOCKVALIDATORSHAREDONE volatile *) papOwners;
     
    552556
    553557
     558
     559/**
     560 * Enables / disables the lock validator for new locks.
     561 *
     562 * @returns The old setting.
     563 * @param   fEnabled    The new setting.
     564 */
     565RTDECL(bool) RTLockValidatorSetEnabled(bool fEnabled);
     566
     567/**
     568 * Is the lock validator enabled?
     569 *
     570 * @returns True if enabled, false if not.
     571 */
     572RTDECL(bool) RTLockValidatorIsEnabled(void);
     573
     574
    554575RT_C_DECLS_END
    555576
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