Changeset 36472 in vbox
- Timestamp:
- Mar 30, 2011 9:59:55 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/critsect.h
r33269 r36472 333 333 334 334 /* Lock strict build: Remap the three enter calls to the debug versions. */ 335 #if def RT_LOCK_STRICT335 #if defined(RT_LOCK_STRICT) && !defined(CRITSECT_WITHOUT_REMAPPING) && !defined(RT_WITH_MANGLING) 336 336 # ifdef ___iprt_asm_h 337 337 # define RTCritSectEnter(pCritSect) RTCritSectEnterDebug(pCritSect, (uintptr_t)ASMReturnAddress(), RT_SRC_POS) … … 346 346 347 347 /* 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) 349 349 # define RTCritSectInit(pCritSect) \ 350 350 RTCritSectInitEx((pCritSect), 0 /*fFlags*/, \ -
trunk/src/VBox/Runtime/generic/critsect-generic.cpp
r33269 r36472 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #define CRITSECT_WITHOUT_REMAPPING 31 32 #include <iprt/critsect.h> 32 33 #include "internal/iprt.h" … … 41 42 42 43 43 #undef RTCritSectInit44 44 RTDECL(int) RTCritSectInit(PRTCRITSECT pCritSect) 45 45 { … … 164 164 165 165 166 #undef RTCritSectTryEnter167 166 RTDECL(int) RTCritSectTryEnter(PRTCRITSECT pCritSect) 168 167 { … … 283 282 284 283 285 #undef RTCritSectEnter286 284 RTDECL(int) RTCritSectEnter(PRTCRITSECT pCritSect) 287 285 { … … 426 424 427 425 428 #undef RTCritSectEnterMultiple429 426 RTDECL(int) RTCritSectEnterMultiple(size_t cCritSects, PRTCRITSECT *papCritSects) 430 427 { -
trunk/src/VBox/Runtime/testcase/tstRTCritSect.cpp
r28800 r36472 31 31 # include <Windows.h> 32 32 #endif 33 #define CRITSECT_WITHOUT_REMAPPING 33 34 #include <iprt/critsect.h> 34 35 … … 59 60 #define LOCKERS(sect) (*(LONG volatile *)&(sect).LockCount) 60 61 61 #undef RTCritSectInit62 62 DECLINLINE(int) RTCritSectInit(PCRITICAL_SECTION pCritSect) 63 63 { … … 66 66 } 67 67 68 #undef RTCritSectEnter69 68 DECLINLINE(int) RTCritSectEnter(PCRITICAL_SECTION pCritSect) 70 69 {
Note:
See TracChangeset
for help on using the changeset viewer.