Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

add .shutdown() method to GpioController #9

Closed
savageautomate opened this issue Dec 3, 2012 · 1 comment
Closed

add .shutdown() method to GpioController #9

savageautomate opened this issue Dec 3, 2012 · 1 comment
Assignees
Milestone

Comments

@savageautomate
Copy link
Member

Add a .shutdown() method to the GpioController interface and implementation to forcefully cleanup and shutdown all GPIO related threads.

@ghost ghost assigned savageautomate Feb 10, 2013
@savageautomate
Copy link
Member Author

Added support for this feature in the latest 0.0.5-SNAPSHOT (2013-02-09) build.

There is also a new ExecutorServiceFactory implementation that allow users to provide their own executor service factory where you users can create the executors and manage own thread pool. Users can assign their own ExecutorServiceFactory implementation via the GpioController.

See: https://github.com/Pi4J/pi4j/tree/develop/pi4j-core/src/main/java/com/pi4j/concurrent for more details.

Example code files all updates to include this new GpioController.shutdown() method implementation.
See: https://github.com/Pi4J/pi4j/blob/develop/pi4j-example/src/main/java/ControlGpioExample.java#L81

mheath pushed a commit to mheath/pi4j that referenced this issue Feb 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant