[systemd-devel] sd_event_run

Lennart Poettering lennart at poettering.net
Fri Apr 10 09:14:40 PDT 2015


On Sat, 14.03.15 12:19, Tom Gundersen (teg at jklm.no) wrote:

> > 1. shouldn't SD_EVENT_PASSIVE become SD_EVENT_INITIAL? "passive" seems strange
> >    in this context.

I found it weird to name this INITIAL (or "INIT" or something like
that) since we would return to it every single iteration... For me
"init" kinda implies it's something "fresh", "unused", and hence not
really something we routinely come back to...

But I don't care too much about this one.

> >    Similarly, SD_EVENT_ARMED seems more self-explanatory than PREPARED.
> >    (I don't like PREPARED because it is not obvious whether sources are
> >    prepared to wait on, or events are prepared to be reaped.)

I called this "prepared" since it what's _prepare() is supposed to get
into...

But ARMED is fine too...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list