I am using an instance of ManualResetEvent to control thread access to a resource but I'm running into problems with it.我正在使用ManualResetEvent一个实例来控制对资源的线程访问,但我遇到了问题。Does anyone know how I can find out during debugging what the state of the object is?有谁知道我如何在调试过程中找出对象的状态?
That is to say I would like to know if the ManualResetEvent is currently blocking any threads and maybe even how many and which threads it is blocking.也就是说,我想知道ManualResetEvent当前是否阻塞了任何线程,甚至可能阻塞了多少线程和哪些线程。