How to find the Parent Thread

M

Mark Howell

Is there a way to find the Parent Thread that spawned a certain Thread?
For example:
Thread a
Spawns Thread b
From inside Thread b's process, can I get to Thread a's TLS
(Thread Local Storage)?
 
A

Alvin Bruney [MVP]

I don't think so. you'd need to maintain a reference to the parent thread
since these really are separate execution streams.

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
OWC Black book on Amazon and
www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top