This patch fixes the shutdown of the new single threaded GPIO event executor and also puts the GPIO incoming events as quickly as possible into their own thread, so that the native thread is blocked as short as possible.
Further the native thread only attaches once to the JVM, instead of once everytime an event arises. This should then create only one JVM thread per interrupt handling thread.
This patch fixes the shutdown of the new single threaded GPIO event executor and also puts the GPIO incoming events as quickly as possible into their own thread, so that the native thread is blocked as short as possible.
Further the native thread only attaches once to the JVM, instead of once everytime an event arises. This should then create only one JVM thread per interrupt handling thread.