开发者

How to determine which thread is created from another?

开发者 https://www.devze.com 2023-01-03 03:52 出处:网络
Is there any way in .NET for a thread to determine its \'parent\', i.e. the thread that created it? I\'m diagnosing a timing issue with a black box third party API and would like to find out what cus

Is there any way in .NET for a thread to determine its 'parent', i.e. the thread that created it?

I'm diagnosing a timing issue with a black box third party API and would like to find out what custom code开发者_开发技巧 of mine it is executing on which thread.


Kindof If you use a tool like PostSharp (you have to implement an aspect), you can determine on which threads the Start() method was called.

0

精彩评论

暂无评论...
验证码 换一张
取 消