Is there some way to determine if, between two programatically defined points (e.g,. a start()
and stop()
method), the current thread has been interrupted for any purpose?
This would include timer switches, hardware driven interrupts, etc.
A hacky not-portable solution is fine.