VirtualBox

Changeset 25373 in vbox for trunk/src/VBox/Runtime/include


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

IPRT,PDMCritSect: More validation changes. Validate posix and linux mutexes. Always update the thread state with critsects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/strict.h

    r8651 r25373  
    4242#endif
    4343
     44#ifdef RTCRITSECT_STRICT
     45# define RTCRITSECT_STRICT_POS_DECL         RTHCUINTPTR uId, RT_SRC_POS_DECL
     46# define RTCRITSECT_STRICT_POS_ARGS         uId, RT_SRC_POS_ARGS
     47# define RTCRITSECT_STRICT_BLOCK_ARGS(pRec) pRec,     uId, RT_SRC_POS_ARGS
     48#else
     49# define RTCRITSECT_STRICT_POS_DECL         int iDummy
     50# define RTCRITSECT_STRICT_POS_ARGS         0
     51# define RTCRITSECT_STRICT_BLOCK_ARGS(pRec) NULL, 0, NULL, 0, NULL
     52#endif
     53
     54
    4455/** @def RTSEMMUTEX_STRICT
    4556 * Enables strictness checks and lock accounting of the RTSemMutex API.
     
    4859# define RTSEMMUTEX_STRICT
    4960#endif
     61
     62#ifdef RTSEMMUTEX_STRICT
     63# define RTSEMMUTEX_STRICT_POS_DECL         RTHCUINTPTR uId, RT_SRC_POS_DECL
     64# define RTSEMMUTEX_STRICT_POS_ARGS         uId, RT_SRC_POS_ARGS
     65# define RTSEMMUTEX_STRICT_BLOCK_ARGS(pRec) pRec,     uId, RT_SRC_POS_ARGS
     66#else
     67# define RTSEMMUTEX_STRICT_POS_DECL         int iDummy
     68# define RTSEMMUTEX_STRICT_POS_ARGS         0
     69# define RTSEMMUTEX_STRICT_BLOCK_ARGS(pRec) NULL, 0, NULL, 0, NULL
     70#endif
     71
    5072
    5173/** @def RTSEMRW_STRICT
     
    5678#endif
    5779
     80#ifdef RTSEMRW_STRICT
     81# define RTSEMRW_STRICT_POS_DECL            RTHCUINTPTR uId, RT_SRC_POS_DECL
     82# define RTSEMRW_STRICT_POS_ARGS            uId, RT_SRC_POS_ARGS
     83# define RTSEMRW_STRICT_BLOCK_ARGS(pRec)    pRec, uId, RT_SRC_POS_ARGS
     84#else
     85# define RTSEMRW_STRICT_POS_DECL            int iDummy
     86# define RTSEMRW_STRICT_POS_ARGS            0
     87# define RTSEMRW_STRICT_BLOCK_ARGS(pRec)    NULL, 0, NULL, 0, NULL
     88#endif
     89
     90
    5891
    5992/** @} */
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