Is there any way that can detect which thread a line of code is in?
I’m working with Background Audio Agent and I want to detect what process and thread it is in ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think that
System.Threading.Thread.CurrentThreadis available on WP7. You can use this to identify which thread you are on.Check the docs here: Thread.CurrentThread