MCPcopy Create free account
hub / github.com/YACReader/yacreader / Id

Class Id

tests/concurrent_queue_test/concurrent_queue_test.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92class Id
93{
94public:
95 explicit Id(int threadId, int jobId)
96 : threadId { threadId }, jobId { jobId } { }
97
98 QString toString() const { return QStringLiteral("[%1.%2]").arg(threadId).arg(jobId); }
99
100private:
101 const int threadId;
102 const int jobId;
103};
104
105QDebug operator<<(QDebug debug, Id id)
106{

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by 1

operator()Method · 0.68