Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2013-12-19 | util/PeakBuffer: use IsEmpty() instead of IsNull() | Max Kellermann | 1 | -1/+1 | |
The DynamicFifoBuffer methods never return nullptr when the buffer is empty or full; instead, they return an empty buffer. This bug caused an endless loop. | |||||
2013-12-15 | util/PeakBuffer: use DynamicFifoBuffer instead of struct fifo_buffer | Max Kellermann | 1 | -1/+0 | |
Switch to the C++ version. | |||||
2013-12-15 | util/PeakBuffer: return ConstBuffer<void> | Max Kellermann | 1 | -4/+3 | |
2013-12-15 | configure.ac: add option "--disable-glib" | Max Kellermann | 1 | -0/+1 | |
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core. | |||||
2013-12-04 | system/Resolver: sockaddr_to_string() returns std::string() | Max Kellermann | 1 | -22/+11 | |
No GLib memory allocation. | |||||
2013-12-03 | PollGroupWinSelect: delete copy constructor and assignment operator | Denis Krjuchkov | 1 | -0/+2 | |
2013-12-03 | PollGroupWinSelect: uninline constructor and destructor | Denis Krjuchkov | 2 | -2/+5 | |
2013-12-02 | event: add poll() based PollGroup implementation | Denis Krjuchkov | 3 | -0/+156 | |
2013-11-29 | PollGroupEPoll.hxx: add const modifiers where applicable | Denis Krjuchkov | 1 | -2/+2 | |
2013-11-29 | event: implement PollGroup based on Windows select | Denis Krjuchkov | 4 | -0/+330 | |
2013-11-28 | event: introduce generic API for internal event loop | Denis Krjuchkov | 6 | -55/+147 | |
2013-11-28 | include cleanup using iwyu | Max Kellermann | 9 | -3/+11 | |
2013-11-27 | Add infrastructure for using multiple event loops | Denis Krjuchkov | 13 | -113/+215 | |
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. | |||||
2013-11-24 | event: add API documentation | Max Kellermann | 5 | -1/+38 | |
2013-11-24 | event/SocketMonitor: add missing space | Max Kellermann | 2 | -4/+4 | |
2013-11-06 | event/FullyBufferedSocket: remove obsolete TODO comment | Max Kellermann | 1 | -16/+0 | |
We have a better solution now. | |||||
2013-11-06 | event/FullyBufferedSocket: try to write without extra roundtrip | Max Kellermann | 2 | -17/+33 | |
Postpone the write using IdleMonitor instead of scheduling a write event. This reduces the number of system calls, because we don't need to register and unregister the write event in epoll. | |||||
2013-11-06 | event/FullyBufferedSocket: make WriteFromBuffer() protected | Max Kellermann | 2 | -4/+4 | |
.. and rename it to Flush(). | |||||
2013-11-06 | event/SocketMonitor: add method Abandon() | Max Kellermann | 4 | -2/+32 | |
2013-11-04 | event/ServerSocket: don't abort if IPv6 is not available | Max Kellermann | 1 | -1/+19 | |
First check if an IPv6 socket can be created. | |||||
2013-11-04 | event/ServerSocket: fix assertion failure | Max Kellermann | 1 | -1/+1 | |
Regression from previous commit. D'oh! | |||||
2013-11-04 | event/ServerSocket: open sockets in the order they were configured | Max Kellermann | 2 | -5/+5 | |
Use a std::list which can be appended at the end. | |||||
2013-10-28 | *: use nullptr instead of NULL | Max Kellermann | 2 | -4/+4 | |
2013-10-19 | event/ServerSocket: pass AllocatedPath to AddPath() | Max Kellermann | 2 | -14/+18 | |
2013-10-18 | SignalMonitor: add SignalMonitorGetEventLoop() | Max Kellermann | 2 | -0/+15 | |
Eliminate the global variable "shutdown_loop". | |||||
2013-10-15 | event/BufferedSocket: pass writable pointer to OnSocketInput() | Max Kellermann | 1 | -1/+9 | |
Remove the const_cast from HttpdClient.cxx, and avoid one allocation in ClientRead.cxx. | |||||
2013-10-15 | util/FifoBuffer: C++ version of the fifo_buffer library | Max Kellermann | 2 | -44/+21 | |
2013-10-15 | system/clock: convert to C++ | Max Kellermann | 1 | -4/+4 | |
2013-10-15 | require GLib 2.28 | Max Kellermann | 1 | -2/+0 | |
The header glib_compat.h is now obsolete and can be removed. | |||||
2013-10-15 | gcc.h: rename to Compiler.h | Max Kellermann | 8 | -8/+8 | |
2013-10-02 | Log: new logging library API | Max Kellermann | 1 | -11/+12 | |
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend. | |||||
2013-09-04 | system/SocketError: un-inline constructor | Max Kellermann | 1 | -0/+2 | |
Reduces header dependencies. | |||||
2013-09-04 | util/Error: new error passing library | Max Kellermann | 5 | -54/+56 | |
Replaces GLib's GError. | |||||
2013-09-04 | system/resolver: convert to C++ | Max Kellermann | 1 | -1/+1 | |
2013-08-10 | EventLoop: initialise the thread id explicitly | Max Kellermann | 1 | -1/+2 | |
2013-08-10 | EventLoop: new implementation using epoll | Max Kellermann | 13 | -16/+705 | |
Implement an event loop without GLib. | |||||
2013-08-10 | event/Call: signal the calling thread | Max Kellermann | 1 | -0/+5 | |
Fixes regression from commit 018f4155. | |||||
2013-08-10 | event/IdleMonitor: new monitor class | Max Kellermann | 2 | -0/+130 | |
2013-08-10 | event/MultiSocketMonitor: add struct SingleFD | Max Kellermann | 2 | -8/+32 | |
Prepare for migrating away from GLib. | |||||
2013-08-10 | event/MultiSocketMonitor: use uint64_t instead of gint64 | Max Kellermann | 2 | -5/+6 | |
Unsigned and portable. | |||||
2013-08-10 | event/MultiSocketMonitor: eliminate virtual method CheckSockets() | Max Kellermann | 2 | -8/+16 | |
Handle timeout internally. | |||||
2013-08-10 | event/MultiSocketMonitor: PrepareSockets() returns timeout | Max Kellermann | 1 | -2/+5 | |
Simplify the API, don't use GLib specific integer type. | |||||
2013-08-10 | thread/Id: new class replacing GThread pointers | Max Kellermann | 2 | -8/+9 | |
Remove a GLib dependencies from class EventLoop and DatabaseLock. | |||||
2013-08-08 | event: add function BlockingCall() | Max Kellermann | 2 | -0/+108 | |
Replaces io_thread_call(). This approach is more generic and easier to use due to std::function. | |||||
2013-08-08 | EventLoop: add methodd IsInside() | Max Kellermann | 2 | -2/+26 | |
Track which thread runs the EventLoop and provide a check whether we're currently inside. | |||||
2013-08-08 | EventLoop: un-inline Run() and others | Max Kellermann | 2 | -22/+61 | |
Prepare for adding more code. | |||||
2013-08-08 | event/*Monitor: add method GetEventLoop() | Max Kellermann | 4 | -1/+16 | |
2013-08-08 | event/SocketMonitor: un-inline Schedule() | Max Kellermann | 2 | -24/+23 | |
Merge with CommitEventFlags(). | |||||
2013-08-08 | event/SocketMonitor: add assertions | Max Kellermann | 2 | -0/+12 | |
2013-08-08 | event/BufferedSocket: add missing include | Max Kellermann | 1 | -0/+1 | |