2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Use thread_local counter in logs for thread index.

This commit is contained in:
John Preston
2019-11-14 20:03:44 +03:00
parent 8b14249cd2
commit 3a7faffa3a
3 changed files with 10 additions and 24 deletions

View File

@@ -33,24 +33,6 @@ class SessionData;
class RSAPublicKey;
struct ConnectionOptions;
class Thread : public QThread {
// The Q_OBJECT meta info is used for qobject_cast!
Q_OBJECT
public:
Thread() {
static int ThreadCounter = 0;
_threadIndex = ++ThreadCounter;
}
int getThreadIndex() const {
return _threadIndex;
}
private:
int _threadIndex = 0;
};
class Connection {
public:
enum ConnectionType {