]> git.alsa-project.org Git - alsa-gobject.git/commit
timer: user-instance: delegate decision of poll timeout into application
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 10 Feb 2020 12:20:41 +0000 (21:20 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Tue, 11 Feb 2020 12:01:11 +0000 (21:01 +0900)
commit7afb66bdd6c90cf598503db0d2123d31ff89d292
tree05a022dce442ea7d56dabe28f648fdb8ca77b697
parentd33414977a5c8828c96c7a3d5125d5993c637383
timer: user-instance: delegate decision of poll timeout into application

As long as using the created Gsource with GMainContext, the call of poll(2)
system call with infinite timeout surely returns when quit() method is
called for the context. All of GMainContext implements GWakeup with eventfd
and the call of quit() emits event via file descriptor of eventfd. This
brings wakeup from blocking when poll(2) is called with inifinite timeout.

This means that it's necessarily need to have explicit timeout internally.
This commit removes implementation of GSourceFunc.prepare for the reason.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/timer/user-instance.c