WiringPi.Net icon indicating copy to clipboard operation
WiringPi.Net copied to clipboard

Shutting down interrupt threads

Open Kokenberg opened this issue 7 years ago • 0 comments

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...

Kokenberg avatar May 27 '17 20:05 Kokenberg