From 215be703a736a3053e210763a05591f40a04e448 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 6 Jan 2014 12:53:54 +0000 Subject: [PATCH] increase the thread priority of the real time timer --- src/server.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/server.cpp b/src/server.cpp index 77edc0e1..f7f8b974 100755 --- a/src/server.cpp +++ b/src/server.cpp @@ -145,7 +145,7 @@ void CHighPrecisionTimer::Start() #endif // start thread - QThread::start(); + QThread::start ( QThread::TimeCriticalPriority ); } } @@ -164,6 +164,11 @@ void CHighPrecisionTimer::run() while ( bRun ) { // call processing routine by fireing signal + +// TODO by emit a signal we leave the high priority thread -> maybe use some +// other connection type to have something like a true callback, e.g. +// "Qt::DirectConnection" -> Can this work? + emit timeout(); // now wait until the next buffer shall be processed (we