summaryrefslogtreecommitdiffstats
path: root/src/shared/prioq.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bus: add minimal event loop APILennart Poettering2013-10-101-0/+2
| | | | | | | | | | | | | | | 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.
* Add __attribute__((const, pure, format)) in various placesZbigniew Jędrzejewski-Szmek2013-05-031-3/+3
| | | | | | | | I'm assuming that it's fine if a _const_ or _pure_ function calls assert. It is assumed that the assert won't trigger, and even if it does, it can only trigger on the first call with a given set of parameters, and we don't care if the compiler moves the order of calls.
* bus: implement full method call timeout logicLennart Poettering2013-03-211-0/+1
|
* shared: add simple priority queue implementationLennart Poettering2013-03-211-0/+39