Base mainloop on pa_rtclock_now()
authorMarc-André Lureau <marc-andre.lureau@nokia.com>
Sat, 4 Apr 2009 23:13:43 +0000 (02:13 +0300)
committerMarc-André Lureau <marcandre.lureau@gmail.com>
Sat, 20 Jun 2009 14:29:31 +0000 (17:29 +0300)
commit0955e3d45b6e992308e2d51fcbf28a9f9376f788
tree4fc673713b46d0fdd33c5529d1a06354db9d33ba
parent125c52889626b2ac408ecbcc8ea85575f5808e07
Base mainloop on pa_rtclock_now()

Move the mainloop to monotonic based time events.

Introduces 4 helper functions:
pa_{context,core}_rttime_{new,restart}(), that fill correctly a
timeval with the rtclock flag set if the mainloop supports it.

Both mainloop-test and mainloop-test-glib works with rt and timeval
based time events. PulseAudio and clients should be fully functional.

This patch has received several iterations, and this one as been
largely untested.

Signed-off-by: Marc-André Lureau <marca-andre.lureau@nokia.com>
42 files changed:
src/Makefile.am
src/daemon/main.c
src/map-file
src/modules/module-card-restore.c
src/modules/module-combine.c
src/modules/module-default-device-restore.c
src/modules/module-device-restore.c
src/modules/module-esound-sink.c
src/modules/module-stream-restore.c
src/modules/module-suspend-on-idle.c
src/modules/module-tunnel.c
src/modules/module-waveout.c
src/modules/raop/raop_client.c
src/modules/rtp/module-rtp-recv.c
src/modules/rtp/module-rtp-send.c
src/modules/rtp/rtsp_client.c
src/pulse/context.c
src/pulse/context.h
src/pulse/internal.h
src/pulse/mainloop-api.h
src/pulse/mainloop.c
src/pulse/stream.c
src/pulse/timeval.h
src/pulsecore/avahi-wrap.c
src/pulsecore/core-rtclock.c
src/pulsecore/core-rtclock.h
src/pulsecore/core-scache.c
src/pulsecore/core.c
src/pulsecore/core.h
src/pulsecore/dbus-shared.c
src/pulsecore/dbus-util.c
src/pulsecore/dbus-util.h
src/pulsecore/pdispatch.c
src/pulsecore/pdispatch.h
src/pulsecore/protocol-esound.c
src/pulsecore/protocol-native.c
src/pulsecore/socket-client.c
src/pulsecore/socket-client.h
src/tests/mainloop-test.c
src/tests/thread-mainloop-test.c
src/utils/pabrowse.c
src/utils/pacat.c