Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2014-01-06 | decoder/faad: make variables more local | Max Kellermann | 1 | -47/+31 | |
2014-01-06 | decoder/faad: eliminate local variable "ret" | Max Kellermann | 1 | -5/+2 | |
2014-01-06 | event/Loop: cancel the WakeFD monitor in destructor | Max Kellermann | 1 | -0/+4 | |
2014-01-06 | input/AlsaInputPlugin.cxx: use I/O thread to poll for available data | Steven O'Brien | 1 | -55/+289 | |
[mk: modified to use MultiSocketMonitor instead of SocketMonitor] | |||||
2014-01-06 | event/MultiSocketMonitor: add method ClearSocketList() | Max Kellermann | 3 | -1/+17 | |
2014-01-06 | event/SocketMonitor: don't close the socket automatically | Max Kellermann | 12 | -21/+20 | |
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 | util/Cast: new utility library | Max Kellermann | 3 | -2/+62 | |
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 | output/httpd: move the clients.clear() call to the IOThread | Max Kellermann | 1 | -1/+3 | |
This call is not thread-safe. | |||||
2014-01-05 | output/httpd: import GetEventLoop() | Max Kellermann | 2 | -3/+5 | |
2014-01-05 | ClientList: use "delete" instead of Client::Close() | Max Kellermann | 1 | -2/+8 | |
Client::Close() installs a TimeoutMonitor, which is not something we should do during shutdown. | |||||
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 | 3 | -18/+43 | |
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 | output/httpd: move Bind()/Unbind() to the IOThread | Max Kellermann | 1 | -4/+8 | |
Fixes more thread-safety bugs. | |||||
2014-01-04 | event/poll: eliminate one vector::size() call | Max Kellermann | 1 | -2/+3 | |
2014-01-04 | output/httpd: move all broadcast operations to the IOThread | Max Kellermann | 2 | -11/+76 | |
Add a Page queue to class HttpdOutput, and use DeferredMonitor to flush this queue inside the IOThread. This fixes a thread-safety issue: much of EventLoop is not thread-safe, and the httpd plugin ignored that problem. | |||||
2014-01-04 | output/httpd: use the IOThread | Max Kellermann | 1 | -2/+2 | |
Do all I/O in the IOThread and not in the main thread. This solves an upcoming deadlock problem. | |||||
2014-01-04 | output/httpd: move queue size check to HttpdClient::PushPage() | Max Kellermann | 3 | -18/+6 | |
Don't let the server care for client problems. | |||||
2014-01-04 | output/httpd: wrap the std::list in std::queue | Max Kellermann | 2 | -6/+16 | |
2014-01-04 | output/httpd: merge duplicate code to ClearQueue() | Max Kellermann | 2 | -5/+15 | |
2014-01-04 | output/httpd: keep track of queue size | Max Kellermann | 2 | -13/+14 | |
Don't iterate the std::list each time. | |||||
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 | mixer/alsa: use DeferredMonitor to update file descriptors | Max Kellermann | 1 | -14/+7 | |
EventLoop::AddCall() and EventLoop::AddIdle() are unsafe, because we can't cancel those calls. | |||||
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. | |||||
2014-01-04 | event/DeferredMonitor: make fully thread-safe | Max Kellermann | 4 | -54/+77 | |
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(). | |||||
2014-01-04 | Added application key for soundcloud plugin | James McGlashan (DarkFox) | 1 | -1/+2 | |
2014-01-04 | Added user and search paramaters for SoundCloud plugin | James McGlashan (DarkFox) | 1 | -0/+8 | |
2014-01-02 | http -> https for SoundCloud plugin | James McGlashan (DarkFox) | 1 | -6/+6 | |
2013-12-31 | output/httpd: change "struct" to "class" | Max Kellermann | 3 | -4/+7 | |
2013-12-31 | output/httpd: move code to methods Delay(), Play(), Cancel() | Max Kellermann | 2 | -22/+46 | |
2013-12-31 | output/httpd: move Cast() into the class | Max Kellermann | 2 | -25/+23 | |
2013-12-31 | output/httpd: add methods Init(), Finish() | Max Kellermann | 2 | -12/+29 | |
2013-12-31 | output/httpd: use reference instead of pointer | Max Kellermann | 3 | -14/+14 | |
2013-12-31 | output/httpd: make the HttpdClient base class "private" | Max Kellermann | 1 | -1/+1 | |
2013-12-31 | event/*Monitor: document as not being thread-safe | Max Kellermann | 4 | -0/+15 | |
2013-12-31 | event/Loop: document that AddCall() is thread-safe | Max Kellermann | 1 | -0/+5 | |
2013-12-29 | command: "lsinfo" and "readcomments" allowed for remote files | Max Kellermann | 4 | -0/+59 | |
2013-12-29 | SongUpdate: read tags from songs in an archive | Max Kellermann | 3 | -5/+128 | |
Add the TagStream.cxx library, similar to TagFile.cxx, and use it to load tags from song files inside archives. | |||||
2013-12-29 | InputStream: add static method OpenReady() | Max Kellermann | 7 | -15/+41 | |
Merge some duplicate code. |