- 14 Dec, 2014 1 commit
-
-
Max Kellermann authored
-
- 04 Feb, 2014 1 commit
-
-
Max Kellermann authored
-
- 13 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 09 Jan, 2014 2 commits
-
-
Max Kellermann authored
Kludge for libavahi-client quirk.
-
Max Kellermann authored
Add the debug-only flag "virgin" which gets checked by assert() calls. Fixes assertion failures when using zeroconf/avahi.
-
- 06 Jan, 2014 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Users now have to call Close() explicitly. This simplifies using the class, as most users have automatic socket management already, and Steal() had to be used often.
-
- 05 Jan, 2014 6 commits
-
-
Max Kellermann authored
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.
-
Max Kellermann authored
Reduce DeferredMonitor overhead.
-
Max Kellermann authored
Improved support for added events.
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 04 Jan, 2014 5 commits
-
-
Max Kellermann authored
Now that the remaining known bugs in poll() implementation are fixed, we can go on without the GLib implementation.
-
Max Kellermann authored
Commit 1f119597 allowed modifying the "quit" attribute from any thread, and thus the assertion may fail spuriously. This assertion is too strict for the relaxed use of "quit". Let's remove it and move the "quit" check to before the SockedMonitor::Dispatch() call.
-
Max Kellermann authored
-
Max Kellermann authored
Simply set the "quit" flag and wake up the thread. This works even if we're inside this thread. Setting "quit" to a new value without mutex protection is usually not safe, but good enough here.
-
Max Kellermann authored
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().
-
- 28 Nov, 2013 1 commit
-
-
Denis Krjuchkov authored
-
- 27 Nov, 2013 1 commit
-
-
Denis Krjuchkov authored
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.
-
- 06 Nov, 2013 1 commit
-
-
Max Kellermann authored
-
- 28 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 15 Oct, 2013 1 commit
-
-
Max Kellermann authored
-
- 10 Aug, 2013 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Implement an event loop without GLib.
-
Max Kellermann authored
Remove a GLib dependencies from class EventLoop and DatabaseLock.
-
- 08 Aug, 2013 2 commits
-
-
Max Kellermann authored
Track which thread runs the EventLoop and provide a check whether we're currently inside.
-
Max Kellermann authored
Prepare for adding more code.
-
- 07 Aug, 2013 3 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
Max Kellermann authored
-
- 08 Apr, 2013 1 commit
-
-
Max Kellermann authored
No caller needs this. Fixes use-after-free after returning from Client::OnTimeout().
-
- 14 Jan, 2013 1 commit
-
-
Max Kellermann authored
-
- 03 Jan, 2013 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
-
- 14 Feb, 2012 1 commit
-
-
Max Kellermann authored
-
- 12 Feb, 2012 2 commits
-
-
Max Kellermann authored
-
Max Kellermann authored
Parses CUE data from the "CUESHEET" tag. Needs further integration in the update thread.
-
- 11 Feb, 2012 2 commits
-
-
Max Kellermann authored
Pass a callback table to scan_file() and scan_stream(), instead of returning a tag object.
-
Max Kellermann authored
-