From 62f3a9f4d2a5b05d4f2c1752f14cfa103062b78b Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 8 Feb 2016 14:53:36 +0100 Subject: [PATCH] Fixed high CPU usage of TS input during shutdown. --- src/input/input_ts.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/input/input_ts.cpp b/src/input/input_ts.cpp index b048243e..fc0a8735 100755 --- a/src/input/input_ts.cpp +++ b/src/input/input_ts.cpp @@ -431,6 +431,9 @@ namespace Mist { lock.wait(); threadCount = threadTimer.size(); lock.post(); + if (threadCount){ + Util::sleep(100); + } } while (threadCount); } #endif