rtkit: add SIGXCPU handling to wineserver
commit0728db444fa3eff43018f911de26234e10131490
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 23 Mar 2015 08:14:29 +0000 (23 09:14 +0100)
committerMaarten Lankhorst <dev@mblankhorst.nl>
Wed, 23 Dec 2015 18:04:52 +0000 (23 19:04 +0100)
tree05f607a99cc5b5fafd24d1b5cd0741ed996fe6ad
parent513f36be3ff19c906ac7cc0deced7be32be1c518
rtkit: add SIGXCPU handling to wineserver

This is dependent on getting the correct server_pid in the previous commit.
Processes now forward SIGXCPU to wineserver, who will attempt to downgrade
all threads that were set to realtime priority by avrt first, and if another
SIGXCPU is received or none were found it will downgrade all realtime threads.

Special-thanks-to: tizbac
dlls/avrt/main.c
dlls/ntdll/server.c
libs/wine/loader.c
server/main.c
server/rtkit.c
server/thread.c
server/thread.h