Find the owning thread of a lock in debug

  • Thread starter Thread starter Olie
  • Start date Start date
O

Olie

How do you determine the owning thread of a lock in debug and Visual
Studio. This is easy to do in c++ because the critical section has a
member variable with the thread ID. I have not found any way to do this
in C#.

The closest I have found is SyncBlk but this seems a bit complicated
and lengthy to get this simple information. There must be a better way
I just have not found it yet.
 

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

Back
Top