[NTOSKRNL]: Properly respect the registry's Win32PrioritySeparation value instead...
authorAlex Ionescu <aionescu@gmail.com>
Wed, 23 Sep 2015 05:10:58 +0000 (05:10 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Wed, 23 Sep 2015 05:10:58 +0000 (05:10 +0000)
commit0e86ca73d09d20f49a84154247fcc499c4ed5697
tree138ff32e90478688f349a9d86fb7084033f46236
parent81b8c2bb922222e9a9b1a337e5ea1cb422b5305f
[NTOSKRNL]: Properly respect the registry's Win32PrioritySeparation value instead of ignoring it.
[NTOSKRNL]: Actually apply the foreground priority boost to threads in a foreground process.
[NTOSKRNL]: Correctly handle the case where the quantum length and fixed/variable flag are set to "default", instead of falling back into the server case.
Thanks to WINSRV doing the right thing, ReactOS console apps now receive the priority separation boost. However, my tests show that it doesn't last as long as it should on Windows (quantums too short? bug in priority decrement?). Also, since Win32k.sys doesn't tell the kernel about foreground GUI apps, they don't get the boost. Someone needs to add a NtSetInformationProcess call in whatever win32k function determines active focus.
Dedicated to ThFabba who needs to write some tests ;-)

svn path=/trunk/; revision=69324
reactos/include/ndk/pstypes.h
reactos/ntoskrnl/config/cmdata.c
reactos/ntoskrnl/include/internal/ps.h
reactos/ntoskrnl/io/iomgr/driver.c
reactos/ntoskrnl/ke/thrdschd.c
reactos/ntoskrnl/ps/process.c