From 01e4b61a910afdd21f860fadbe98075735c2bf51 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 16 Aug 2009 02:02:51 +0200 Subject: aupdate: implicitly call _write_swap() if it wasn't called explicitly --- src/pulsecore/aupdate.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pulsecore/aupdate.h') diff --git a/src/pulsecore/aupdate.h b/src/pulsecore/aupdate.h index 072e382d..fb38ffa2 100644 --- a/src/pulsecore/aupdate.h +++ b/src/pulsecore/aupdate.h @@ -93,6 +93,10 @@ unsigned pa_aupdate_write_swap(pa_aupdate *a); * pa_update_write_end(a) * } * + * In some cases keeping both structures up-to-date might not be + * necessary, since they are fully rebuilt on each iteration + * anyway. In that case you may leave the _write_swap() call out, it + * will then be done implicitly in the _write_end() invocation. */ #endif -- cgit