-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
timer-stop logic #18
Comments
That is intended behavior, not really well documented though. Setting timeout to zero disarms the timer. So for a periodic timer you have to set the initial delay as well. The Lines 93 to 105 in a334d23
|
That part is not true though:
https://linux.die.net/man/2/timerfd_settime
|
forget what I said. I didn't read properly and thought they were talking about "both" in the sense of "it_interval" and "it_value" |
I was looking at these 4 lines:
https://github.com/troglobit/libuev/blob/a334d23/src/uev.c#L381
To me this looks like when there's no initial timeout, and only a periodic timer, the timer just gets stopped after the first expiration.
Is that a bug or intended behavior?
The text was updated successfully, but these errors were encountered: