mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
Add name to threads
This help identifying threads when debugging. The naming scheme is using 'class/function name + variable name'. Note that the length limitaion is 16 chars on linux. On Windows, the limit is 32767 chars. PR #21403.
This commit is contained in:
@@ -123,6 +123,7 @@ AutoDownloader::AutoDownloader(IApplication *app)
|
||||
.arg(fileName.toString(), errorString), Log::CRITICAL);
|
||||
});
|
||||
|
||||
m_ioThread->setObjectName("RSS::AutoDownloader m_ioThread");
|
||||
m_ioThread->start();
|
||||
|
||||
connect(app->addTorrentManager(), &AddTorrentManager::torrentAdded
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#include "base/settingvalue.h"
|
||||
#include "base/utils/thread.h"
|
||||
|
||||
class QThread;
|
||||
class QTimer;
|
||||
|
||||
class Application;
|
||||
|
||||
@@ -90,6 +90,7 @@ Session::Session()
|
||||
|
||||
m_itemsByPath.insert(u""_s, new Folder); // root folder
|
||||
|
||||
m_workingThread->setObjectName("RSS::Session m_workingThread");
|
||||
m_workingThread->start();
|
||||
load();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user