[python-win32] Getting new thread's ID (not handle)
Justin Johnson
justinjohnson at gmail.com
Mon Aug 1 23:00:13 CEST 2005
I see GetCurrentThreadId there, but not GetThreadId.
On 8/1/05, Jim.Vickroy at noaa.gov <Jim.Vickroy at noaa.gov> wrote:
>
> It is in the win32api module.
>
> -- jv
>
>
> It looks like GetThreadId is what I need, but I can't find that in any of
> the win32* modules. I do see CreateThread in CVS in
> Pythonwin/win32thread.cpp, but I don't have a win32thread in my
> installation.
>
> On 8/1/05, Justin Johnson <justinjohnson at gmail.com> wrote:
> >
> > MSDN says PostThreadMessage takes the thread ID as a parameter. >From
> > reading the doc I see that handle and ID are different and that both should
> > be returned when creating a new thread with CreateThread. I am creating a
> > new thread with the threading module and do not see a way to get the ID
> > back. I searched the source to see if CreateThread is being called and
> > didn't find anything. Does anyone know how to get a thread's ID if the
> > thread was created with threading.Thread?
> > Thanks.
> > Justin
> >
>
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050801/21e6b330/attachment.htm
More information about the Python-win32
mailing list