pyCthon
pyCthon

Reputation: 12361

C++11 thread id, Is there a easier naming convention?

Having an easy naming convention can help with complex tasks and debugging large programs.

Is it possible to have a better naming convention than

0x115f57000
0x115fda000
0x11605d000
0x1160e0000

For instance exception thrown on thread id 0x1035a8000! might not help much. It also does not help that the thread id will change every-time the program is run.

Upvotes: 2

Views: 283

Answers (1)

Andrei Chernikov
Andrei Chernikov

Reputation: 350

You can always stop you program at start where threads are created, look in the debugger which thread does what, and take a note.

Upvotes: 2

Related Questions