VirtualBox

Changeset 36472 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Mar 30, 2011 9:59:55 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70856
Message:

addendum to r70394 for RTCrit*

File:
1 edited

Legend:

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

    r33269 r36472  
    333333
    334334/* Lock strict build: Remap the three enter calls to the debug versions. */
    335 #ifdef RT_LOCK_STRICT
     335#if defined(RT_LOCK_STRICT) && !defined(CRITSECT_WITHOUT_REMAPPING) && !defined(RT_WITH_MANGLING)
    336336# ifdef ___iprt_asm_h
    337337#  define RTCritSectEnter(pCritSect)                        RTCritSectEnterDebug(pCritSect, (uintptr_t)ASMReturnAddress(), RT_SRC_POS)
     
    346346
    347347/* Strict lock order: Automatically classify locks by init location. */
    348 #if defined(RT_LOCK_STRICT_ORDER) && defined(IN_RING3)
     348#if defined(RT_LOCK_STRICT_ORDER) && defined(IN_RING3) && !defined(CRITSECT_WITHOUT_REMAPPING) &&!defined(RT_WITH_MANGLING)
    349349# define RTCritSectInit(pCritSect) \
    350350    RTCritSectInitEx((pCritSect), 0 /*fFlags*/, \
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