2

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.

Yakk - Adam Nevraumont
  • 262,606
  • 27
  • 330
  • 524
pyCthon
  • 11,746
  • 20
  • 73
  • 135
  • 4
    possible duplicate of [Give a name to a boost thread?](http://stackoverflow.com/questions/3342159/give-a-name-to-a-boost-thread) - I know you're asking about C++11, but std::thread and boost::thread are very similar and the techniques for naming threads are more about the platform (Windows vs. Linux) since there's no cross-platform solution. – John Zwinck Apr 28 '13 at 02:44

1 Answers1

2

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

Andrei Chernikov
  • 360
  • 1
  • 2
  • 12