Skip to content

Instantly share code, notes, and snippets.

@baulig
Created February 11, 2011 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baulig/823024 to your computer and use it in GitHub Desktop.
Save baulig/823024 to your computer and use it in GitHub Desktop.
internal MDC.ThreadInfo GetThread (Thread thread)
{
var procs = GetProcesses ();
var threads = OnGetThreads (procs [0].Id);
foreach (var t in threads) {
if (t.Id == thread.ID)
return t;
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment