VirtualBox

Changeset 37419 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jun 11, 2011 8:25:37 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72218
Message:

PDM/IPRT CritSect: Introduced the NOP critical section for simplifying locking in IOM and TM. (Revisiting device emulation locking, making it more fine grained over time.)

File:
1 edited

Legend:

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

    r36492 r37419  
    102102/** Bootstrap hack for use with certain memory allocator locks only! */
    103103#define RTCRITSECT_FLAGS_BOOTSTRAP_HACK UINT32_C(0x00000004)
     104/** If set, the critical section becomes a dummy that doesn't serialize any
     105 * threads.  This flag can only be set at creation time.
     106 *
     107 * The intended use is avoiding lots of conditional code where some component
     108 * might or might not require entering a critical section before access. */
     109#define RTCRITSECT_FLAGS_NOP            UINT32_C(0x00000008)
    104110/** @} */
    105111
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