VirtualBox

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


Ignore:
Timestamp:
Dec 17, 2009 3:16:55 PM (15 years ago)
Author:
vboxsync
Message:

IPRT,PDMCritSect: More lock validation.

File:
1 edited

Legend:

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

    r25406 r25467  
    4545# define RTCRITSECT_STRICT_POS_DECL             RTHCUINTPTR uId, RT_SRC_POS_DECL
    4646# define RTCRITSECT_STRICT_POS_ARGS             uId, RT_SRC_POS_ARGS
    47 # define RTCRITSECT_STRICT_BLOCK(hThread, pRec, fRecursive) \
    48                                                 RTLockValidatorCheckBlocking(pRec, (hThread), RTTHREADSTATE_CRITSECT, fRecursive, uId, RT_SRC_POS_ARGS)
    4947#else
    5048# define RTCRITSECT_STRICT_POS_DECL             int iDummy
    5149# define RTCRITSECT_STRICT_POS_ARGS             0
    52 # define RTCRITSECT_STRICT_BLOCK(hThread, pRec, fRecursive) \
    53                                                 RTThreadBlocking((hThread), RTTHREADSTATE_CRITSECT)
    5450#endif
    55 #define  RTCRITSECT_STRICT_UNBLOCK(hThread)     RTThreadUnblocked((hThread), RTTHREADSTATE_CRITSECT)
    5651
    5752
     
    6661# define RTSEMMUTEX_STRICT_POS_DECL             RTHCUINTPTR uId, RT_SRC_POS_DECL
    6762# define RTSEMMUTEX_STRICT_POS_ARGS             uId, RT_SRC_POS_ARGS
    68 # define RTSEMMUTEX_STRICT_BLOCK(hThread, pRec) RTLockValidatorCheckBlocking(pRec, (hThread), RTTHREADSTATE_MUTEX, true, uId, RT_SRC_POS_ARGS)
    6963#else
    7064# define RTSEMMUTEX_STRICT_POS_DECL             int iDummy
    7165# define RTSEMMUTEX_STRICT_POS_ARGS             0
    72 # define RTSEMMUTEX_STRICT_BLOCK(hThread, pRec) RTThreadBlocking((hThread), RTTHREADSTATE_MUTEX)
    7366#endif
    74 #define  RTSEMMUTEX_STRICT_UNBLOCK(hThread)     RTThreadUnblocked((hThread), RTTHREADSTATE_MUTEX)
    7567
    7668
     
    8375
    8476#ifdef RTSEMRW_STRICT
    85 # define RTSEMRW_STRICT_POS_DECL            RTHCUINTPTR uId, RT_SRC_POS_DECL
    86 # define RTSEMRW_STRICT_POS_ARGS            uId, RT_SRC_POS_ARGS
    87 # define RTSEMRW_STRICT_BLOCK_ARGS(pRec)    pRec, uId, RT_SRC_POS_ARGS
     77# define RTSEMRW_STRICT_POS_DECL                RTHCUINTPTR uId, RT_SRC_POS_DECL
     78# define RTSEMRW_STRICT_POS_ARGS                uId, RT_SRC_POS_ARGS
    8879#else
    89 # define RTSEMRW_STRICT_POS_DECL            int iDummy
    90 # define RTSEMRW_STRICT_POS_ARGS            0
    91 # define RTSEMRW_STRICT_BLOCK_ARGS(pRec)    NULL, 0, NULL, 0, NULL
     80# define RTSEMRW_STRICT_POS_DECL                int iDummy
     81# define RTSEMRW_STRICT_POS_ARGS                0
    9282#endif
    9383
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