VirtualBox

Changeset 25378 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 14, 2009 7:30:31 PM (15 years ago)
Author:
vboxsync
Message:

Use RTSemMutexRequest*Debug in strict builds.

File:
1 edited

Legend:

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

    r25373 r25378  
    281281 */
    282282RTDECL(int)  RTSemMutexRelease(RTSEMMUTEX MutexSem);
     283
     284/* Strict build: Remap the two request calls to the debug versions. */
     285#ifdef RT_STRICT
     286# ifdef ___iprt_asm_h
     287#  define RTSemMutexRequest(pCritSect, cMillies)            RTSemMutexRequestDebug((pCritSect), (cMillies), (uintptr_t)ASMReturnAddress(), RT_SRC_POS)
     288#  define RTSemMutexRequestNoResume(pCritSect, cMillies)    RTSemMutexRequestNoResumeDebug((pCritSect), (cMillies), (uintptr_t)ASMReturnAddress(), RT_SRC_POS)
     289# else
     290#  define RTSemMutexRequest(pCritSect, cMillies)            RTSemMutexRequestDebug((pCritSect), (cMillies), 0, RT_SRC_POS)
     291#  define RTSemMutexRequestNoResume(pCritSect, cMillies)    RTSemMutexRequestNoResumeDebug((pCritSect), (cMillies), 0, RT_SRC_POS)
     292# endif
     293#endif
    283294
    284295/** @} */
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