aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Main, IOThread: move GMainLoop setup code to class EventLoopMax Kellermann2013-01-1413-82/+139
|
* IOThread: use gcc.hMax Kellermann2013-01-141-4/+6
|
* ClientList.cxx: copy client list before iteratingDenis Krjuchkov2013-01-131-1/+2
| | | | | | | | It seems that it is not safe to remove the item from std::list while it's being iterated somewhere else. This is a very simple quick fix to make things work until some better solution is implemented.
* WakeFD.cxx: use two sockets instead of pipe on Win32Denis Krjuchkov2013-01-132-5/+128
| | | | | | | | | Pipes aren't really pollable on Windows. GLib emulates polling on pipes using separate reader/writer threads. This adds significant overhead and keeps a strong dependency on GLib. socketpair() function is absent on Windows as well. We implement it here in a loose way.
* Win32Main.cxx: more clean shutdownDenis Krjuchkov2013-01-131-5/+22
| | | | | | | | | | This change fixes two issues: 1) console_handler is called from a separate thread. Thread-safe primitive is required for correct operation. 2) If console_handler returns TRUE our process is immediately terminated. We use Sleep() to give main thread an opportunity to shutdown correctly.
* configure.ac: use correct variable for checking libmpdclient presenceDenis Krjuchkov2013-01-111-1/+1
|
* thread/{Mutex,Cond}: new backend for WIN32Max Kellermann2013-01-115-4/+137
| | | | | | Use CRITICAL_SECTION and CONDITION_VARIABLE. This requires Windows Vista or newer. It fixes problems with GLib threading objects that were implicitly created by static constructors before g_thread_init().
* GlobalEvents: #undef DELETE on WindowsMax Kellermann2013-01-111-0/+8
| | | | Work around a build failure due to windows.h macro.
* configure.ac: require Windows Vista or newerMax Kellermann2013-01-111-1/+1
| | | | | We're going to use Vista features soon. Sorry for those poor people still on XP (or Windows, anyway).
* configure.ac: enable WIN32_LEAN_AND_MEAN on WindowsMax Kellermann2013-01-114-1/+4
|
* string_util.c: provide fallback strndup() implementationDenis Krjuchkov2013-01-114-0/+50
| | | | | This patch also adds extern "C" { } wrapper around string_util.h to allow its usage in C++ code
* input/curl: use std::list instead of GQueueMax Kellermann2013-01-101-93/+80
|
* icy_metadata: convert to C++Max Kellermann2013-01-105-165/+137
|
* input/Curl: add constructor to input_curl classMax Kellermann2013-01-101-32/+30
|
* input/Curl: remove unused source/source_id attributesMax Kellermann2013-01-101-7/+0
|
* input/Curl: remove redundant attribute "url"Max Kellermann2013-01-101-4/+2
| | | | Use the "url" attribute from the base class instead.
* input/Curl: use std::forward_list instead of GSListMax Kellermann2013-01-101-27/+21
|
* input/Curl: remove unused attribute "fds"Max Kellermann2013-01-101-3/+1
|
* input/Curl: require libcurl 7.18Max Kellermann2013-01-102-25/+5
|
* output/shout: refactor check_block_param() to a functionMax Kellermann2013-01-101-18/+15
| | | | Don't use macro magic, don't dereference the block_param.
* Log, ...: include cleanupMax Kellermann2013-01-103-3/+0
|
* decoder/wavpack: convert to C++Max Kellermann2013-01-105-37/+61
|
* decoder/wavpack: include cleanupMax Kellermann2013-01-101-3/+0
|
* conf: convert to C++Max Kellermann2013-01-102-76/+86
|
* path: move code to IsSupportedCharset()Max Kellermann2013-01-101-6/+15
|
* path: make the "win_charset" buffer staticMax Kellermann2013-01-101-1/+1
| | | | It is illegal to use it after going out of scope.
* notify: convert to C++Max Kellermann2013-01-107-101/+80
|
* io_thread: convert to C++Max Kellermann2013-01-1012-44/+40
|
* input/{curl,soup}: convert to C++Max Kellermann2013-01-106-71/+89
|
* input_stream: convert to C++ (internally)Max Kellermann2013-01-1013-37/+43
|
* PlayerControl: switch to the Mutex/Cond classesMax Kellermann2013-01-103-13/+10
|
* thread/Cond: new wrapper for pthread_cond_t or GCondMax Kellermann2013-01-106-0/+192
|
* thread/GLibMutex: new Mutex implementationMax Kellermann2013-01-103-20/+45
| | | | | Switch WIN32 to this implementation to be able to use condition variables, which is impossible with CriticalSection.
* PlayerThread: use pc.cond instead of main_condMax Kellermann2013-01-104-8/+2
| | | | | The main_cond variable was completely unnecessary. The pc.cond object can be used for both main->pc and pc->main.
* DecoderControl: take ownership of client_condMax Kellermann2013-01-104-7/+8
| | | | | Don't let the "client" pass its own GCond. This was not used consistently.
* DecoderThread: signal the client after decoder finishesMax Kellermann2013-01-101-0/+2
| | | | Fixes potential dead lock bug.
* thread/PosixMutex: fix indentMax Kellermann2013-01-101-13/+13
|
* configure.ac: change newline position to fit into 80 charsDenis Krjuchkov2013-01-101-1/+1
|
* configure.ac: print results of libmpdclient detectionDenis Krjuchkov2013-01-101-0/+1
|
* configure.ac: print results of AdPlug detectionDenis Krjuchkov2013-01-101-0/+1
|
* configure.ac: consistently use Opus nameDenis Krjuchkov2013-01-101-1/+1
|
* GlobalEvents: lock-less operation using std::atomicMax Kellermann2013-01-103-39/+9
| | | | Use a bit field instead of a mutex-protected bool array.
* event/WakeFD: use eventfd() if availableMax Kellermann2013-01-102-1/+46
|
* fd_util: support eventfd()Max Kellermann2013-01-103-1/+26
|
* GlobalEvents: move code to class WakeFDMax Kellermann2013-01-094-27/+155
|
* EventPipe: rename to GlobalEventsMax Kellermann2013-01-0919-273/+266
|
* EventPipe: use Mutex instead of GMutexMax Kellermann2013-01-091-10/+7
|
* event_pipe.h: convert to C++Max Kellermann2013-01-0916-44/+21
|
* sig_handlers, log: convert to C++Max Kellermann2013-01-097-25/+19
|
* mixer/{alsa,pulse}: convert to C++Max Kellermann2013-01-097-32/+60
|