mirror of
https://github.com/reactos/reactos.git
synced 2025-05-20 01:24:11 +00:00
[NTOSKRNL] Make lazy writer thread run with higher priority.
CORE-14248
This commit is contained in:
parent
f93acd806a
commit
4a910a12cc
1 changed files with 8 additions and 0 deletions
|
@ -1387,6 +1387,7 @@ CcInitView (
|
||||||
{
|
{
|
||||||
HANDLE LazyWriter;
|
HANDLE LazyWriter;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
KPRIORITY Priority;
|
||||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||||
|
|
||||||
DPRINT("CcInitView()\n");
|
DPRINT("CcInitView()\n");
|
||||||
|
@ -1458,6 +1459,13 @@ CcInitView (
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Priority = 27;
|
||||||
|
Status = NtSetInformationThread(LazyWriter,
|
||||||
|
ThreadPriority,
|
||||||
|
&Priority,
|
||||||
|
sizeof(Priority));
|
||||||
|
ASSERT(NT_SUCCESS(Status));
|
||||||
|
|
||||||
/* Handle is not needed */
|
/* Handle is not needed */
|
||||||
ObCloseHandle(LazyWriter, KernelMode);
|
ObCloseHandle(LazyWriter, KernelMode);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue