Hipatia
2009-04-24 18:47:02 UTC
Hi!
I'm trying to get the id number of a thread just to write it to the standard
output.
Since I'm not an expert in c++ programming, let me explain what I do (even
if it's quite simple): a create an instance as follows,
boost::thread::id thread_id= boost::this_thread::get_id();
By debugging my code with Visual Studio, I see that 'thread_id' has an
'unsigned int' object member called 'id', so I would like to display this
value.
Unfortunately, I cannot find in the boost documentation any function member
of boost::thread::id class that returns its value.
Thanks,
Hipatia.
I'm trying to get the id number of a thread just to write it to the standard
output.
Since I'm not an expert in c++ programming, let me explain what I do (even
if it's quite simple): a create an instance as follows,
boost::thread::id thread_id= boost::this_thread::get_id();
By debugging my code with Visual Studio, I see that 'thread_id' has an
'unsigned int' object member called 'id', so I would like to display this
value.
Unfortunately, I cannot find in the boost documentation any function member
of boost::thread::id class that returns its value.
Thanks,
Hipatia.
--
View this message in context: http://www.nabble.com/-thread--getting-thread-id-number-tp23222717p23222717.html
Sent from the Boost - Users mailing list archive at Nabble.com.
View this message in context: http://www.nabble.com/-thread--getting-thread-id-number-tp23222717p23222717.html
Sent from the Boost - Users mailing list archive at Nabble.com.