]> git.tuebingen.mpg.de Git - paraslash.git/commit - play.c
sched: Use integer value for select timeout.
authorAndre Noll <maan@tuebingen.mpg.de>
Fri, 24 Sep 2021 16:11:06 +0000 (18:11 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Thu, 25 Aug 2022 13:37:26 +0000 (15:37 +0200)
commitfdd8a22e1df57a8c9254e7d0074301e7dde2c557
tree944d01b1258a7e95e9c8f92aa10ef3d18e662fc6
parent5dcb47606caf94ba1fe3a07f7795890fda3bdcee
sched: Use integer value for select timeout.

This modifies the public struct sched so that users pass in the
default timeout as an integer value in milliseconds rather than
a struct timeval. This simplifies the code a little and eases the
transition from select(2) to poll(2) because poll(2) also takes a
plain integer for the timeout.

Since para_select() of fd.c now calls ms2tv() to convert the timeout
back to a struct timeval, all executables which link with fd.o must
also link with time.o. This was not the case for para_mixer and
para_audioc, so configure.ac needs to be adjusted accordingly.
17 files changed:
afs.c
audioc.c
audiod.c
client.c
configure.ac
fd.c
fd.h
filter.c
gui.c
interactive.c
interactive.h
play.c
recv.c
sched.c
sched.h
server.c
write.c