Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] Obtaining thread id on Windows
From: John Wilkinson (jwilkinson_at_[hidden])
Date: 2009-09-09 15:50:15


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_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Ray Burkholder
> Sent: Wednesday, September 09, 2009 2:10 PM
> To: boost-users_at_[hidden]
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net