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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user