c++ - Give a name to a boost thread? -
is possible give name boost::thread
debuggers tables , crash logs can more readable? how?
you need access underlying thread primitive , assign name in system dependent manner. debugging , crash logs inherently system dependent , boost::thread more non-system-dependency, i.e. portability.
it seems ( http://www.boost.org/doc/libs/1_43_0/doc/html/thread.html ) there no documented way access underlying system resources boost thread. (but have never used myself may miss something.)
edit: (as david writes in comment) http://www.boost.org/doc/libs/1_43_0/doc/html/thread/thread_management.html#thread.thread_management.thread.nativehandle
Comments
Post a Comment