telepathy-logger: log-walker: Run the filter synchronously in the walker

Debarshi Ray debarshir at kemper.freedesktop.org
Tue Jan 15 08:18:31 PST 2013


Module: telepathy-logger
Branch: master
Commit: 7818d410e868a1bd8a42eb0de1a754387561cedc
URL:    http://cgit.freedesktop.org/telepathy/telepathy-logger/commit/?id=7818d410e868a1bd8a42eb0de1a754387561cedc

Author: Debarshi Ray <debarshir at freedesktop.org>
Date:   Fri Aug 31 14:18:43 2012 +0200

log-walker: Run the filter synchronously in the walker

This ensures that the TplLogEventFilter is always run from the same
thread which invoked the walker. This is implemented by keeping track
of skipped events in the history instead of silently ignoring them
within the LogIters. This has the nice side effect that we do not need
to run the filter while rewinding.

Fixes: https://bugs.freedesktop.org/54270

---

 telepathy-logger/log-iter-pidgin-internal.h |    5 +-
 telepathy-logger/log-iter-pidgin.c          |   58 +-------------
 telepathy-logger/log-iter-xml-internal.h    |    4 +-
 telepathy-logger/log-iter-xml.c             |   59 ++-------------
 telepathy-logger/log-manager.c              |    6 +-
 telepathy-logger/log-store-internal.h       |    6 +-
 telepathy-logger/log-store-pidgin.c         |    7 +-
 telepathy-logger/log-store-xml.c            |    7 +-
 telepathy-logger/log-store.c                |    6 +-
 telepathy-logger/log-walker-internal.h      |    4 +-
 telepathy-logger/log-walker.c               |  107 +++++++++++++++++++++++++--
 tests/dbus/test-tpl-log-iter-pidgin.c       |    4 +-
 tests/dbus/test-tpl-log-iter-xml.c          |    8 +-
 13 files changed, 133 insertions(+), 148 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-logger/diff/?id=7818d410e868a1bd8a42eb0de1a754387561cedc


More information about the telepathy-commits mailing list