Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unwatch ? #4

Closed
SamDecrock opened this issue May 5, 2013 · 7 comments
Closed

unwatch ? #4

SamDecrock opened this issue May 5, 2013 · 7 comments
Assignees

Comments

@SamDecrock
Copy link

Hi,

Is there a way to "unwatch" the inputs?

The things is, I want to watch 5 buttons and when one is pressed, no others should be able to press there buttons.

@fivdi
Copy link
Owner

fivdi commented May 8, 2013

Well, if there's a watch there should be an unwatch. I'll add one.

@ghost ghost assigned fivdi May 8, 2013
@jaminbenuk
Copy link

Hi,

I'd also like to see an "unwatch" if its at all possible.

Many Thanks.

@fivdi
Copy link
Owner

fivdi commented Sep 1, 2013

I'm currently looking into this. In order for unwatch to function correctly onoff will have to use EPOLL rather than POLL to detect input changes. POLL is currently used. With EPOLL is would also be possible to use one thread to watch all inputs rather than one thread per input as is currently the case. unwatch should be available in the not to distant future!

@fivdi
Copy link
Owner

fivdi commented Sep 16, 2013

This issue hasn't been forgotten, it's about 80% implemented. The last 20% will probably take as long to implement as the first 80!

@SamDecrock
Copy link
Author

As long as this EPOLL doesn't breake the interrupt like nature of the library, it's ok.

@fivdi
Copy link
Owner

fivdi commented Sep 19, 2013

The interrupt like nature will also be available with EPOLL.

@fivdi
Copy link
Owner

fivdi commented Sep 22, 2013

onoff v0.2.0 has unwatch and unwatchAll methods.

@fivdi fivdi closed this as completed Sep 22, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants