Changeset 25398 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Dec 15, 2009 12:58:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/strict.h
r25373 r25398 43 43 44 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 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(hThread, pRec, fRecursive) \ 48 RTThreadBlockingDebug((hThread), RTTHREADSTATE_CRITSECT, fRecursive, pRec, uId, RT_SRC_POS_ARGS) 48 49 #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 50 # define RTCRITSECT_STRICT_POS_DECL int iDummy 51 # define RTCRITSECT_STRICT_POS_ARGS 0 52 # define RTCRITSECT_STRICT_BLOCK(hThread, pRec, fRecursive) \ 53 RTThreadBlocking((hThread), RTTHREADSTATE_CRITSECT) 52 54 #endif 55 #define RTCRITSECT_STRICT_UNBLOCK(hThread) RTThreadUnblocked((hThread), RTTHREADSTATE_CRITSECT) 53 56 54 57 … … 61 64 62 65 #ifdef RTSEMMUTEX_STRICT 63 # define RTSEMMUTEX_STRICT_POS_DECL RTHCUINTPTR uId, RT_SRC_POS_DECL64 # define RTSEMMUTEX_STRICT_POS_ARGS uId, RT_SRC_POS_ARGS65 # define RTSEMMUTEX_STRICT_BLOCK _ARGS(pRec) pRec, uId, RT_SRC_POS_ARGS66 # define RTSEMMUTEX_STRICT_POS_DECL RTHCUINTPTR uId, RT_SRC_POS_DECL 67 # define RTSEMMUTEX_STRICT_POS_ARGS uId, RT_SRC_POS_ARGS 68 # define RTSEMMUTEX_STRICT_BLOCK(hThread, pRec) RTThreadBlockingDebug((hThread), RTTHREADSTATE_MUTEX, true, pRec, uId, RT_SRC_POS_ARGS) 66 69 #else 67 # define RTSEMMUTEX_STRICT_POS_DECL int iDummy68 # define RTSEMMUTEX_STRICT_POS_ARGS 069 # define RTSEMMUTEX_STRICT_BLOCK _ARGS(pRec) NULL, 0, NULL, 0, NULL70 # define RTSEMMUTEX_STRICT_POS_DECL int iDummy 71 # define RTSEMMUTEX_STRICT_POS_ARGS 0 72 # define RTSEMMUTEX_STRICT_BLOCK(hThread, pRec) RTThreadBlocking((hThread), RTTHREADSTATE_MUTEX) 70 73 #endif 74 #define RTSEMMUTEX_STRICT_UNBLOCK(hThread) RTThreadUnblocked((hThread), RTTHREADSTATE_MUTEX) 71 75 72 76
Note:
See TracChangeset
for help on using the changeset viewer.