aboutsummaryrefslogtreecommitdiffstats
path: root/src/event (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-07-22event/ServerSocket: use AllocatedSocketAddress to build local socket addressMax Kellermann1-13/+4
2015-07-22event/ServerSocket: use AllocatedSocketAddress for OneServerSocket::addressMax Kellermann2-9/+16
Manages memory automatically.
2015-07-22net/StaticSocketAddress: replace cast operator with GetAddress()Max Kellermann1-2/+2
The implicit cast operator can be very dangerous.
2015-07-22net/ToString: rename sockaddr_to_string() to ToString()Max Kellermann1-1/+1
2015-07-22net/Resolver: move sockaddr_to_string() to ToString.cxxMax Kellermann1-0/+1
2015-03-17*: doxygen fixupsMax Kellermann1-6/+3
2015-03-05event/ServerSocket: #ifdef out local socket support on WindowsMax Kellermann1-0/+8
2015-02-13net/StaticSocketAdress: new class wrapping struct sockaddr_storageMax Kellermann1-7/+11
2015-02-10net/SocketAddress: light wrapper for struct sockaddrMax Kellermann2-26/+24
2015-02-10system/{Resolver,Socket{Error,Util}}: move to new library libnet.aMax Kellermann3-5/+5
2015-02-10event/ServerSocket: remove obsolete macro DEFAULT_PORTMax Kellermann1-2/+0
2015-02-10event/ServerSocket: remove obsolete typedefMax Kellermann1-6/+0
2015-01-01Copyright year 2015Max Kellermann30-30/+30
2014-12-14event/Loop: read the "again" flag while holding mutexMax Kellermann1-1/+2
2014-12-04playlist, InotifySource, ...: update GLib commentsMax Kellermann1-1/+1
2014-11-25event/DeferredMonitor: include cleanupMax Kellermann1-3/+0
2014-11-18event/ServerSocket: fix get_remote_uid() error valueMax Kellermann1-1/+1
Must return -1 on error, not 0. 0 is root.
2014-10-10event/IdleMonitor: remove redundant commentMax Kellermann1-2/+1
2014-08-24event/TimeoutMonitor: really reset "active" flag before invoking OnTimeout()Max Kellermann1-1/+1
The previous commit was broken. D'oh!
2014-08-24event/TimeoutMonitor: reset "active" flag before invoking OnTimeout()Max Kellermann1-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-07event/BufferedSocket: fix inversed buffer checkMax Kellermann1-1/+1
This was broken by commit 84d20d9e, which deleted the "!" from the check.
2014-08-07event/BufferedSocket: fix inversed buffer checkMax Kellermann1-1/+1
This was broken by commit 84d20d9e, which deleted the "!" from the check.
2014-08-06util/FifoBuffer: rename to StaticFifoBufferMax Kellermann1-2/+2
2014-04-26DeferredMonitor: fix race condition when using GLib event loopMax Kellermann2-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-15configure.ac: always define _GNU_SOURCE on LinuxMax Kellermann1-5/+0
Make sure glibc gives us all features.
2014-03-02event/SignalMonitor: fix build failure due to missing signal.h includeMax Kellermann1-0/+2
2014-02-18event/SignalMonitor: unblock signals after forkMax Kellermann1-1/+22
Fixes hanging child process in the "pipe" output plugin.
2014-02-05event/Loop: remove the dummy constructor argumentMax Kellermann2-4/+2
2014-01-13copyright year 2014Max Kellermann30-30/+30
2014-01-09event/Loop: allow AddTimer() after Run() has returnedMax Kellermann1-1/+3
Kludge for libavahi-client quirk.
2014-01-09event/Loop: allow scheduling events before Run()Max Kellermann3-5/+29
Add the debug-only flag "virgin" which gets checked by assert() calls. Fixes assertion failures when using zeroconf/avahi.
2014-01-07util/Alloc: new library replacing GLib's g_malloc()Max Kellermann1-4/+3
2014-01-06event/Loop: cancel the WakeFD monitor in destructorMax Kellermann1-0/+4
2014-01-06event/MultiSocketMonitor: add method ClearSocketList()Max Kellermann2-0/+14
2014-01-06event/SocketMonitor: don't close the socket automaticallyMax Kellermann6-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-06event/IdleMonitor: cancel in destructor only if activeMax Kellermann1-1/+6
Debug-mode workaround for bogus assertion failure.
2014-01-06event/MultiSocketMonitor: API documentationMax Kellermann1-0/+10
2014-01-05event/Loop: try to avoid the WakeFD when adding DeferredMonitorMax Kellermann2-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-05event/Loop: combine multiple WakeFD::Write() callsMax Kellermann1-1/+6
Reduce DeferredMonitor overhead.
2014-01-05event/Loop: add attribute "again"Max Kellermann2-2/+10
Improved support for added events.
2014-01-05event/Loop: add thread-safety assertionsMax Kellermann3-1/+30
2014-01-05event/Loop: remove obsolete assertionMax Kellermann1-2/+0
2014-01-05event/Loop: move code to HandleDeferred()Max Kellermann2-8/+19
2014-01-05event/MultiSocketMonitor: add missing <algorithm> includeMax Kellermann1-0/+2
For std::find_if().
2014-01-05event/MultiSocketMonitor: add method ReplaceSocketList()Max Kellermann2-0/+42
Move code from AlsaMixerPlugin.
2014-01-05event/MultiSocketMonitor: include cleanupMax Kellermann2-8/+1
2014-01-04event/Loop: remove the GLib implementationMax Kellermann12-664/+3
Now that the remaining known bugs in poll() implementation are fixed, we can go on without the GLib implementation.
2014-01-04event/poll: eliminate one vector::size() callMax Kellermann1-2/+3
2014-01-04event/Loop: remove bogus "!quit" assertionMax Kellermann1-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-04event/Loop: remove unused method AddCall()Max Kellermann2-28/+0