Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2006 Jan : ThreadId

www.cryer.info
Managed Newsgroup Archive

ThreadId

Subject:ThreadId
Posted by:"Mike Hubbard" (mmhubba..@socal.rr.com)
Date:Fri, 27 Jan 2006 17:30:52 -0800

Is there a way from within an object that I can return the thread id
of the thread using that object, other than passing the thread's
handle all the way down to the object I am interested in.

I have a class that will be instantiated and used from within the
context of several threads, and I want to know which thread is
accessing it at a given time so I can log that information to disk.
It must be available because the call stack has that information.

Thanks.

Mike

Glossary

Replies:

www.cryer.info
Managed Newsgroup Archive