summaryrefslogtreecommitdiff
path: root/src/event/Loop.hxx
AgeCommit message (Collapse)Author
2014-02-05event/Loop: remove the dummy constructor argumentMax Kellermann
2014-01-13copyright year 2014Max Kellermann
2014-01-09event/Loop: allow scheduling events before Run()Max Kellermann
Add the debug-only flag "virgin" which gets checked by assert() calls. Fixes assertion failures when using zeroconf/avahi.
2014-01-05event/Loop: try to avoid the WakeFD when adding DeferredMonitorMax Kellermann
Add a flag that indicates whether the EventLoop is currently "busy". As long as that flag is set, it does not need to be woken up - we can simply add the DeferredMonitor to the list, and it will be caught by EventLoop very soon. This eliminates nearly all of the DeferredMonitor overhead when compared to IdleMonitor, rendering IdleMonitor mostly obsolete.
2014-01-05event/Loop: add attribute "again"Max Kellermann
Improved support for added events.
2014-01-05event/Loop: add thread-safety assertionsMax Kellermann
2014-01-05event/Loop: move code to HandleDeferred()Max Kellermann
2014-01-04event/Loop: remove the GLib implementationMax Kellermann
Now that the remaining known bugs in poll() implementation are fixed, we can go on without the GLib implementation.
2014-01-04event/Loop: remove unused method AddCall()Max Kellermann
2014-01-04event/DeferredMonitor: make fully thread-safeMax Kellermann
Instead of creating a new eventfd for each DeferredMonitor instance, reuse EventLoop's eventfd, and add a std::list to EventLoop that manages the list of pending DeferredMonitors. This std::list is protected by the same mutex as the "calls" list. The bottom line is: reduced overhead because the per-instance eventfd was eliminated, slightly added overhead due to Mutex usage (but negligible), and we're thread-safe now. This subsystem is now good enough to replace EventLoop::AddCall().
2013-12-31event/Loop: document that AddCall() is thread-safeMax Kellermann
2013-11-28event: introduce generic API for internal event loopDenis Krjuchkov
2013-11-27Add infrastructure for using multiple event loopsDenis Krjuchkov
This change adds two configuration options: --with-eventloop=[glib|internal|auto] --with-pollmethod=[epoll|auto] First allows switching between GLib event loop and internal one. Second chooses backend to use for internal event loop. Conditional compilation symbols are changed accordingly. Additional helper macro MPD_OPTIONAL_FUNC_NODEF is added as well.
2013-11-24event: add API documentationMax Kellermann
2013-11-06event/SocketMonitor: add method Abandon()Max Kellermann
2013-10-15gcc.h: rename to Compiler.hMax Kellermann
2013-08-10EventLoop: new implementation using epollMax Kellermann
Implement an event loop without GLib.
2013-08-10thread/Id: new class replacing GThread pointersMax Kellermann
Remove a GLib dependencies from class EventLoop and DatabaseLock.
2013-08-08EventLoop: add methodd IsInside()Max Kellermann
Track which thread runs the EventLoop and provide a check whether we're currently inside.
2013-08-08EventLoop: un-inline Run() and othersMax Kellermann
Prepare for adding more code.
2013-01-30event/Loop: add method WakeUp()Max Kellermann
2013-01-14event/TimeoutMonitor: wrapper for g_timeout_source_new()Max Kellermann
2013-01-14Main, IOThread: move GMainLoop setup code to class EventLoopMax Kellermann