If you cannot store the thread ID when the thread is created, the best way (in my experience) to get the thread ID is to have the thread itself store it in a predetermined location when the thread starts up (using Ray's suggestion of GetCurrentThreadId()). John
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Ray Burkholder Sent: Wednesday, September 09, 2009 2:10 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] [thread] Obtaining thread id on Windows
local copy of the library? There is no documented way of getting a thread id from a thread handle in Windows XP.
From within the thread, you may be able to use ::GetCurrentThreadId()
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users