chiark / gitweb /
bus: add minimal event loop API
authorLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 02:40:28 +0000 (04:40 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 10 Oct 2013 02:44:48 +0000 (04:44 +0200)
commitfd38203a2a7bfbdc6cb5fd4dc54378e70f7d6778
tree4a4c8a464f489825f94e5edd757408bda16fc9ee
parent2b98f75a63e6022bf74a7d678c47faa5208c794f
bus: add minimal event loop API

So far we tried to use epoll directly wherever we needed an event loop.
However, that has various shortcomings, such as the inability to handle
larger amounts of timers (since each timerfd costs one fd, which is a
very limited resource, usually bounded to 1024), and inability to do
priorisation between multiple queued events.

Let's add a minimal event loop API around epoll that is suitable for
implementation of our own daemons and maybe one day can become public
API for those who desire it.

This loop is part of libsystemd-bus, but may be used independently of
it.
.gitignore
Makefile.am
src/libsystemd-bus/sd-event.c [new file with mode: 0644]
src/libsystemd-bus/test-event.c [new file with mode: 0644]
src/shared/prioq.h
src/systemd/sd-event.h [new file with mode: 0644]
src/systemd/sd-journal.h