mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Raise priority of the main "event loop" thread
The goal is to improve responsiveness of qbt when CPU resources are scarce. Instead of lowering libtorrent threads priority, it is chosen to raise main event loop thread priority to avoid getting messy with libtorrent internals. Also on Windows, threads doesn't inherit thread priority from the parent thread and it always use the default (normal) priority. PR #17278.
This commit is contained in:
@@ -136,8 +136,13 @@ private:
|
||||
void processParams(const QStringList ¶ms);
|
||||
void runExternalProgram(const BitTorrent::Torrent *torrent) const;
|
||||
void sendNotificationEmail(const BitTorrent::Torrent *torrent);
|
||||
|
||||
#ifdef QBT_USES_LIBTORRENT2
|
||||
void applyMemoryWorkingSetLimit();
|
||||
void applyMemoryWorkingSetLimit() const;
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
void adjustThreadPriority() const;
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
|
||||
Reference in New Issue
Block a user