WiringPi.Net
WiringPi.Net copied to clipboard
Shutting down interrupt threads
When using the wiringPiISR method a new thread is created which handles the interrupt (as I understand it). The problem I have is that when I try to exit my application I need to trigger the interrupt again (in my case a button push) before the application can exit.
Is there any way to 'shut down' the interrupt thread(s)?
I am now using Process.GetCurrentProcess().Kill(); to stop/kill my application... But that just seems wrong...