- 04 Dec, 2014 1 commit
-
-
Max Kellermann authored
-
- 25 Nov, 2014 1 commit
-
-
Max Kellermann authored
-
- 18 Nov, 2014 1 commit
-
-
Max Kellermann authored
Must return -1 on error, not 0. 0 is root.
-
- 10 Oct, 2014 1 commit
-
-
Max Kellermann authored
-
- 24 Aug, 2014 2 commits
-
-
Max Kellermann authored
The previous commit was broken. D'oh!
-
Max Kellermann authored
The IsActive() method returned true even if the timer was not active, after it completed once. This broke the state file timer, and the state file was not saved periodically.
-
- 07 Aug, 2014 2 commits
-
-
Max Kellermann authored
This was broken by commit 84d20d9e, which deleted the "!" from the check.
-
Max Kellermann authored
This was broken by commit 84d20d9e, which deleted the "!" from the check.
-
- 06 Aug, 2014 1 commit
-
-
Max Kellermann authored
-
- 26 Apr, 2014 1 commit
-
-
Max Kellermann authored
Turns out the lock-free code using atomics was not thread-safe. The given callback could be invoked by GLib before the source_id attribute was assigned. This commit changes the DeferredMonitor class to use a Mutex to block the event loop until source_id is assigned. This bug does not exist in the 0.19 branch because it does not use the GLib main loop anymore.
-
- 15 Mar, 2014 1 commit
-
-
Max Kellermann authored
Make sure glibc gives us all features.
-
- 02 Mar, 2014 1 commit
-
-
Max Kellermann authored
-
- 18 Feb, 2014 1 commit
-
-
Max Kellermann authored
Fixes hanging child process in the "pipe" output plugin.
-
- 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.
-
- 07 Jan, 2014 1 commit
-
-
Max Kellermann authored
-
- 06 Jan, 2014 5 commits
-
-
Max Kellermann authored
-
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.
-
Max Kellermann authored
Debug-mode workaround for bogus assertion failure.
-
Max Kellermann authored
-
- 05 Jan, 2014 8 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
-
Max Kellermann authored
For std::find_if().
-
Max Kellermann authored
Move code from AlsaMixerPlugin.
-
- 04 Jan, 2014 8 commits
-
-
Max Kellermann authored
-
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
-
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
There is no advantage of using EventLoop::AddCall(), now that DeferredMonitor is thread-safe.
-
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().
-
- 31 Dec, 2013 1 commit
-
-
Max Kellermann authored
-