chiark / gitweb /
event: add new kind of event source called "post"
authorLennart Poettering <lennart@poettering.net>
Fri, 21 Feb 2014 20:06:09 +0000 (21:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 21 Feb 2014 20:13:53 +0000 (21:13 +0100)
commit6e9feda30d6d5c4aa9908d458c92eb0daf90eb3a
tree11c80438fe5d8feca7256c9e605fbeceacdb0187
parentd7c9a162f1e15cc21636b57ab7f45097446b932c
event: add new kind of event source called "post"

This new event source is triggered by the dispatching of any non-post
event source. It can thus be used to do clean-up or recheck work,
triggered by any other event source having been executed.

This is different from "defer" event source which are unconditionally
triggered as long as they are enabled. A "defer" event source that does
nothing will result in the event loop busy looping unless it is turned
off eventually. This is different for "post" event sources that will be
only triggered when some other non-post ran, and will thus not keep the
event loop busy on its own.
src/libsystemd/sd-event/sd-event.c
src/systemd/sd-event.h