Pi4J / pi4j-v1

DEPRECATED Java I/O library for Raspberry Pi (GPIO, I2C, SPI, UART)
http://www.pi4j.com
Apache License 2.0
1.31k stars 448 forks source link

Develop/1.4 #504

Closed eitch closed 3 years ago

eitch commented 3 years ago

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.

eitch commented 3 years ago

I have tested this on my production project and it works well.

eitch commented 3 years ago

What is the status of this PR?

eitch commented 3 years ago

@FDelporte @savageautomate any arguments against merging this PR?