- Timestamp:
- Jun 25, 2009 1:08:32 AM (16 years ago)
- Location:
- trunk/src/VBox/Runtime/r0drv/nt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/nt/semevent-r0drv-nt.cpp
r20912 r20913 143 143 NTSTATUS rcNt; 144 144 KPROCESSOR_MODE WaitMode = fInterruptible ? UserMode : KernelMode; 145 KWAIT_REASON WaitReason = Executive; /*fInterruptible ? Executive : UserRequest; ?*/146 145 if (cMillies == RT_INDEFINITE_WAIT) 147 rcNt = KeWaitForSingleObject(&pEventInt->Event, WaitReason, WaitMode, fInterruptible, NULL);146 rcNt = KeWaitForSingleObject(&pEventInt->Event, Executive, WaitMode, fInterruptible, NULL); 148 147 else 149 148 { 150 149 LARGE_INTEGER Timeout; 151 150 Timeout.QuadPart = -(int64_t)cMillies * 10000; 152 rcNt = KeWaitForSingleObject(&pEventInt->Event, WaitReason, WaitMode, fInterruptible, &Timeout);151 rcNt = KeWaitForSingleObject(&pEventInt->Event, Executive, WaitMode, fInterruptible, &Timeout); 153 152 } 154 153 #else -
trunk/src/VBox/Runtime/r0drv/nt/semeventmulti-r0drv-nt.cpp
r20912 r20913 150 150 NTSTATUS rcNt; 151 151 KPROCESSOR_MODE WaitMode = fInterruptible ? UserMode : KernelMode; 152 KWAIT_REASON WaitReason = Executive; /*fInterruptible ? Executive : UserRequest; ?*/153 152 if (cMillies == RT_INDEFINITE_WAIT) 154 rcNt = KeWaitForSingleObject(&pThis->Event, WaitReason, WaitMode, fInterruptible, NULL);153 rcNt = KeWaitForSingleObject(&pThis->Event, Executive, WaitMode, fInterruptible, NULL); 155 154 else 156 155 { 157 156 LARGE_INTEGER Timeout; 158 157 Timeout.QuadPart = -(int64_t)cMillies * 10000; 159 rcNt = KeWaitForSingleObject(&pThis->Event, WaitReason, WaitMode, fInterruptible, &Timeout);158 rcNt = KeWaitForSingleObject(&pThis->Event, Executive, WaitMode, fInterruptible, &Timeout); 160 159 } 161 160 #else
Note:
See TracChangeset
for help on using the changeset viewer.