mirror of
https://github.com/reactos/reactos.git
synced 2025-05-19 09:10:56 +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;
|
||||
NTSTATUS Status;
|
||||
KPRIORITY Priority;
|
||||
OBJECT_ATTRIBUTES ObjectAttributes;
|
||||
|
||||
DPRINT("CcInitView()\n");
|
||||
|
@ -1458,6 +1459,13 @@ CcInitView (
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
Priority = 27;
|
||||
Status = NtSetInformationThread(LazyWriter,
|
||||
ThreadPriority,
|
||||
&Priority,
|
||||
sizeof(Priority));
|
||||
ASSERT(NT_SUCCESS(Status));
|
||||
|
||||
/* Handle is not needed */
|
||||
ObCloseHandle(LazyWriter, KernelMode);
|
||||
|
||||
|
|
Loading…
Reference in a new issue