Changeset 47520 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Aug 2, 2013 11:27:22 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.cpp
r47352 r47520 48 48 uint32_t volatile u32Magic; 49 49 RTCPUID uSourceCpuId; 50 RTNATIVETHREAD hSourceThread; 50 51 RTTHREADCTX hThreadCtx; 51 52 … … 96 97 } 97 98 99 RTNATIVETHREAD hCurrentThread = RTThreadNativeSelf(); 100 if (pData->hSourceThread != hCurrentThread) 101 { 102 RTStrPrintf(pData->achResult, sizeof(pData->achResult), 103 "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_PREEMPTING]: Thread switched! Source=%RTnthrd Current=%RTnthrd.", 104 pData->hSourceThread, hCurrentThread); 105 } 106 98 107 RTCPUID uCurrentCpuId = RTMpCpuId(); 99 108 if (pData->uSourceCpuId != uCurrentCpuId) … … 121 130 RTStrPrintf(pData->achResult, sizeof(pData->achResult), 122 131 "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Called before preempting callback was invoked."); 132 } 133 134 RTNATIVETHREAD hCurrentThread = RTThreadNativeSelf(); 135 if (pData->hSourceThread != hCurrentThread) 136 { 137 RTStrPrintf(pData->achResult, sizeof(pData->achResult), 138 "!tstR0ThreadCtxHook[RTTHREADCTXEVENT_RESUMED]: Thread switched! Source=%RTnthrd Current=%RTnthrd.", 139 pData->hSourceThread, hCurrentThread); 123 140 } 124 141 … … 301 318 pCtxData->fResumedInvoked = false; 302 319 pCtxData->fResumedSuccess = false; 320 pCtxData->hSourceThread = RTThreadNativeSelf(); 303 321 RT_ZERO(pCtxData->achResult); 304 322
Note:
See TracChangeset
for help on using the changeset viewer.