VirtualBox

Changeset 36472 in vbox


Ignore:
Timestamp:
Mar 30, 2011 9:59:55 AM (14 years ago)
Author:
vboxsync
Message:

addendum to r70394 for RTCrit*

Location:
trunk
Files:
3 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*/, \
  • trunk/src/VBox/Runtime/generic/critsect-generic.cpp

    r33269 r36472  
    2929*   Header Files                                                               *
    3030*******************************************************************************/
     31#define CRITSECT_WITHOUT_REMAPPING
    3132#include <iprt/critsect.h>
    3233#include "internal/iprt.h"
     
    4142
    4243
    43 #undef RTCritSectInit
    4444RTDECL(int) RTCritSectInit(PRTCRITSECT pCritSect)
    4545{
     
    164164
    165165
    166 #undef RTCritSectTryEnter
    167166RTDECL(int) RTCritSectTryEnter(PRTCRITSECT pCritSect)
    168167{
     
    283282
    284283
    285 #undef RTCritSectEnter
    286284RTDECL(int) RTCritSectEnter(PRTCRITSECT pCritSect)
    287285{
     
    426424
    427425
    428 #undef RTCritSectEnterMultiple
    429426RTDECL(int) RTCritSectEnterMultiple(size_t cCritSects, PRTCRITSECT *papCritSects)
    430427{
  • trunk/src/VBox/Runtime/testcase/tstRTCritSect.cpp

    r28800 r36472  
    3131# include <Windows.h>
    3232#endif
     33#define CRITSECT_WITHOUT_REMAPPING
    3334#include <iprt/critsect.h>
    3435
     
    5960#define LOCKERS(sect)   (*(LONG volatile *)&(sect).LockCount)
    6061
    61 #undef RTCritSectInit
    6262DECLINLINE(int) RTCritSectInit(PCRITICAL_SECTION pCritSect)
    6363{
     
    6666}
    6767
    68 #undef RTCritSectEnter
    6968DECLINLINE(int) RTCritSectEnter(PCRITICAL_SECTION pCritSect)
    7069{
Note: See TracChangeset for help on using the changeset viewer.

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