From 513f36be3ff19c906ac7cc0deced7be32be1c518 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Mon, 23 Mar 2015 09:14:29 +0100 Subject: [PATCH] server: Bump priority on server to process messages faster --- server/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/main.c b/server/main.c index 7aed338e968..6c257b4676d 100644 --- a/server/main.c +++ b/server/main.c @@ -28,6 +28,7 @@ #include #include #include +#include #ifdef HAVE_GETOPT_H # include #endif @@ -38,6 +39,8 @@ #include "request.h" #include "wine/library.h" +extern int rtkit_make_realtime(pid_t process, pid_t thread, int priority); + /* command-line options */ int debug_level = 0; int foreground = 0; @@ -145,6 +148,7 @@ int main( int argc, char *argv[] ) init_signals(); init_directories(); init_registry(); + rtkit_make_realtime(getpid(), syscall( SYS_gettid ), 2); main_loop(); return 0; } -- 2.11.4.GIT