Changeset 19965 in vbox for trunk/src/VBox
- Timestamp:
- May 24, 2009 6:05:16 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstR0ThreadPreemption.cpp
r19943 r19965 98 98 if (ASMGetFlags() & X86_EFL_IF) 99 99 { 100 uint64_t u64StartTS = RTTime NanoTS();100 uint64_t u64StartTS = RTTimeSystemNanoTS(); 101 101 uint64_t cLoops = 0; 102 102 uint64_t cNanosElapsed; … … 105 105 { 106 106 fPending = RTThreadPreemptIsPending(NIL_RTTHREAD); 107 cNanosElapsed = RTTime NanoTS() - u64StartTS;107 cNanosElapsed = RTTimeSystemNanoTS() - u64StartTS; 108 108 cLoops++; 109 109 } while ( !fPending 110 && cNanosElapsed < UINT64_C(60)*1000U*1000U*1000U); 110 && cNanosElapsed < UINT64_C(2)*1000U*1000U*1000U 111 && cLoops < 10U*_1M); 111 112 if (!fPending) 112 113 RTStrPrintf(pszErr, cchErr, "!Preempt not pending after %'llu loops / %'llu ns",
Note:
See TracChangeset
for help on using the changeset viewer.