[Pkg-owncloud-commits] [owncloud-client] 61/84: Set discovery thread priority to low #5017

Sandro Knauß hefee at moszumanska.debian.org
Fri Oct 21 22:51:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee pushed a commit to branch master
in repository owncloud-client.

commit 5ffaf3a90f85e0295e1c3b9269e54c37695d3bbf
Author: Christian Kamm <mail at ckamm.de>
Date:   Tue Jul 5 13:53:57 2016 +0200

    Set discovery thread priority to low #5017
    
    (cherry picked from commit bd7ec196443202501d76f12db5f243e1efb7cf57)
---
 src/libsync/syncengine.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp
index 85d7e9b..a9f9701 100644
--- a/src/libsync/syncengine.cpp
+++ b/src/libsync/syncengine.cpp
@@ -765,7 +765,11 @@ void SyncEngine::startSync()
 
     qDebug() << "#### Discovery start #################################################### >>";
 
-    _thread.start();
+    // Usually the discovery runs in the background: We want to avoid
+    // stealing too much time from other processes that the user might
+    // be interacting with at the time.
+    _thread.start(QThread::LowPriority);
+
     _discoveryMainThread = new DiscoveryMainThread(account());
     _discoveryMainThread->setParent(this);
     connect(this, SIGNAL(finished(bool)), _discoveryMainThread, SLOT(deleteLater()));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list