Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2015-07-22 | net/StaticSocketAddress: replace cast operator with GetAddress() | Max Kellermann | 1 | -2/+2 | |
The implicit cast operator can be very dangerous. | |||||
2015-07-22 | net/ToString: rename sockaddr_to_string() to ToString() | Max Kellermann | 1 | -1/+1 | |
2015-07-22 | net/Resolver: move sockaddr_to_string() to ToString.cxx | Max Kellermann | 1 | -0/+1 | |
2015-03-17 | *: doxygen fixups | Max Kellermann | 1 | -6/+3 | |
2015-03-05 | event/ServerSocket: #ifdef out local socket support on Windows | Max Kellermann | 1 | -0/+8 | |
2015-02-13 | net/StaticSocketAdress: new class wrapping struct sockaddr_storage | Max Kellermann | 1 | -7/+11 | |
2015-02-10 | net/SocketAddress: light wrapper for struct sockaddr | Max Kellermann | 2 | -26/+24 | |
2015-02-10 | system/{Resolver,Socket{Error,Util}}: move to new library libnet.a | Max Kellermann | 3 | -5/+5 | |
2015-02-10 | event/ServerSocket: remove obsolete macro DEFAULT_PORT | Max Kellermann | 1 | -2/+0 | |
2015-02-10 | event/ServerSocket: remove obsolete typedef | Max Kellermann | 1 | -6/+0 | |
2015-01-01 | Copyright year 2015 | Max Kellermann | 30 | -30/+30 | |
2014-12-14 | event/Loop: read the "again" flag while holding mutex | Max Kellermann | 1 | -1/+2 | |
2014-12-04 | playlist, InotifySource, ...: update GLib comments | Max Kellermann | 1 | -1/+1 | |
2014-11-25 | event/DeferredMonitor: include cleanup | Max Kellermann | 1 | -3/+0 | |
2014-11-18 | event/ServerSocket: fix get_remote_uid() error value | Max Kellermann | 1 | -1/+1 | |
Must return -1 on error, not 0. 0 is root. | |||||
2014-10-10 | event/IdleMonitor: remove redundant comment | Max Kellermann | 1 | -2/+1 | |
2014-08-24 | event/TimeoutMonitor: really reset "active" flag before invoking OnTimeout() | Max Kellermann | 1 | -1/+1 | |
The previous commit was broken. D'oh! | |||||
2014-08-24 | event/TimeoutMonitor: reset "active" flag before invoking OnTimeout() | Max Kellermann | 1 | -1/+3 | |
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. | |||||
2014-08-07 | event/BufferedSocket: fix inversed buffer check | Max Kellermann | 1 | -1/+1 | |
This was broken by commit 84d20d9e, which deleted the "!" from the check. | |||||
2014-08-07 | event/BufferedSocket: fix inversed buffer check | Max Kellermann | 1 | -1/+1 | |
This was broken by commit 84d20d9e, which deleted the "!" from the check. | |||||
2014-08-06 | util/FifoBuffer: rename to StaticFifoBuffer | Max Kellermann | 1 | -2/+2 | |
2014-04-26 | DeferredMonitor: fix race condition when using GLib event loop | Max Kellermann | 2 | -11/+22 | |
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. | |||||
2014-03-15 | configure.ac: always define _GNU_SOURCE on Linux | Max Kellermann | 1 | -5/+0 | |
Make sure glibc gives us all features. | |||||
2014-03-02 | event/SignalMonitor: fix build failure due to missing signal.h include | Max Kellermann | 1 | -0/+2 | |
2014-02-18 | event/SignalMonitor: unblock signals after fork | Max Kellermann | 1 | -1/+22 | |
Fixes hanging child process in the "pipe" output plugin. | |||||
2014-02-05 | event/Loop: remove the dummy constructor argument | Max Kellermann | 2 | -4/+2 | |
2014-01-13 | copyright year 2014 | Max Kellermann | 30 | -30/+30 | |
2014-01-09 | event/Loop: allow AddTimer() after Run() has returned | Max Kellermann | 1 | -1/+3 | |
Kludge for libavahi-client quirk. | |||||
2014-01-09 | event/Loop: allow scheduling events before Run() | Max Kellermann | 3 | -5/+29 | |
Add the debug-only flag "virgin" which gets checked by assert() calls. Fixes assertion failures when using zeroconf/avahi. | |||||
2014-01-07 | util/Alloc: new library replacing GLib's g_malloc() | Max Kellermann | 1 | -4/+3 | |
2014-01-06 | event/Loop: cancel the WakeFD monitor in destructor | Max Kellermann | 1 | -0/+4 | |
2014-01-06 | event/MultiSocketMonitor: add method ClearSocketList() | Max Kellermann | 2 | -0/+14 | |
2014-01-06 | event/SocketMonitor: don't close the socket automatically | Max Kellermann | 6 | -14/+8 | |
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. | |||||
2014-01-06 | event/IdleMonitor: cancel in destructor only if active | Max Kellermann | 1 | -1/+6 | |
Debug-mode workaround for bogus assertion failure. | |||||
2014-01-06 | event/MultiSocketMonitor: API documentation | Max Kellermann | 1 | -0/+10 | |
2014-01-05 | event/Loop: try to avoid the WakeFD when adding DeferredMonitor | Max Kellermann | 2 | -2/+24 | |
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-05 | event/Loop: combine multiple WakeFD::Write() calls | Max Kellermann | 1 | -1/+6 | |
Reduce DeferredMonitor overhead. | |||||
2014-01-05 | event/Loop: add attribute "again" | Max Kellermann | 2 | -2/+10 | |
Improved support for added events. | |||||
2014-01-05 | event/Loop: add thread-safety assertions | Max Kellermann | 3 | -1/+30 | |
2014-01-05 | event/Loop: remove obsolete assertion | Max Kellermann | 1 | -2/+0 | |
2014-01-05 | event/Loop: move code to HandleDeferred() | Max Kellermann | 2 | -8/+19 | |
2014-01-05 | event/MultiSocketMonitor: add missing <algorithm> include | Max Kellermann | 1 | -0/+2 | |
For std::find_if(). | |||||
2014-01-05 | event/MultiSocketMonitor: add method ReplaceSocketList() | Max Kellermann | 2 | -0/+42 | |
Move code from AlsaMixerPlugin. | |||||
2014-01-05 | event/MultiSocketMonitor: include cleanup | Max Kellermann | 2 | -8/+1 | |
2014-01-04 | event/Loop: remove the GLib implementation | Max Kellermann | 12 | -664/+3 | |
Now that the remaining known bugs in poll() implementation are fixed, we can go on without the GLib implementation. | |||||
2014-01-04 | event/poll: eliminate one vector::size() call | Max Kellermann | 1 | -2/+3 | |
2014-01-04 | event/Loop: remove bogus "!quit" assertion | Max Kellermann | 1 | -5/+3 | |
Commit 1f11959 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. | |||||
2014-01-04 | event/Loop: remove unused method AddCall() | Max Kellermann | 2 | -28/+0 | |
2014-01-04 | event/Loop: non-recursive Break() implementation | Max Kellermann | 1 | -4/+2 | |
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. | |||||
2014-01-04 | event/BlockingCall: always use DeferredMonitor internally | Max Kellermann | 1 | -24/+0 | |
There is no advantage of using EventLoop::AddCall(), now that DeferredMonitor is thread-safe. |