Hi,
Does anyone know a way to get notified when a specific thread is being suspended and resumed?
I would like to be able to to something like this:
thread.Suspended += delegate
{
//Do something
};
thread.Resumed += delegate
{
//Do something else
};
I doubt that the .Net Framework has this capability, but is there a technique to achieve this maybe with pinvoke? I need it to be possible with low overhead.