mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-04 14:42:29 -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:
@@ -35,6 +35,8 @@
|
||||
#include <QMutexLocker>
|
||||
#include <QThread>
|
||||
|
||||
#include "base/global.h"
|
||||
|
||||
const int TORRENTIDLIST_TYPEID = qRegisterMetaType<QList<BitTorrent::TorrentID>>();
|
||||
|
||||
BitTorrent::ResumeDataStorage::ResumeDataStorage(const Path &path, QObject *parent)
|
||||
@@ -56,6 +58,7 @@ void BitTorrent::ResumeDataStorage::loadAll() const
|
||||
{
|
||||
doLoadAll();
|
||||
});
|
||||
loadingThread->setObjectName("ResumeDataStorage::loadAll loadingThread");
|
||||
connect(loadingThread, &QThread::finished, loadingThread, &QObject::deleteLater);
|
||||
loadingThread->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user