Move from polling to worker thread #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "worker-test"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I was polling for new pin events, but that felt icky. So now we check for events by blocking, but it is in a worker thread! Now all that libgpio magic is in once place and in a worker. Makes cleanup easy and does a good job encapsulating that hairy code.
It does make a new worker for each input, which is fine for how we are using it. But if we wanted like 20+ inputs we might want to have one worker and group all the inputs. This isn't hard, but it is more complex. Since we don't need it now I punted on it.
cc @probablycorey