]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-event: remove earliest_index/latest_index into common part of event source objects
authorLennart Poettering <lennart@poettering.net>
Mon, 23 Nov 2020 16:49:27 +0000 (17:49 +0100)
committerThe Plumber <50238977+systemd-rhel-bot@users.noreply.github.com>
Wed, 10 Mar 2021 11:41:30 +0000 (12:41 +0100)
commit97f599bf57fdaee688ae5750e9b2b2587e2b597a
tree5e88f7b2cd8a13ba168fc64d9b89d468f013df53
parent846b1dd75e626ad2e2483673eea65774edea9016
sd-event: remove earliest_index/latest_index into common part of event source objects

So far we used these fields to organize the earliest/latest timer event
priority queue.  In a follow-up commit we want to introduce ratelimiting
to event sources, at which point we want any kind of event source to be
able to trigger time wakeups, and hence they all need to be included in
the earliest/latest prioqs.  Thus, in preparation let's make this
generic.

No change in behaviour, just some shifting around of struct members from
the type-specific to the generic part.

(cherry picked from commit f41315fceb5208c496145cda2d6c865a5458ce44)

Related: #1819868
src/libsystemd/sd-event/sd-event.c