aboutsummaryrefslogtreecommitdiffstats
path: root/src/main_notify.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* main_notify: renamed source to event_pipe.cMax Kellermann2009-01-011-39/+0
| | | | | | We are going to migrate away from the concept of notifying the main thread. There should be events sent to it instead. This patch starts a series to implement that.
* main_notify: removed lock()/unlock()Max Kellermann2008-12-311-4/+0
| | | | These functions are not used anymore since we use the GLib main loop.
* main: use the GLib main loopMax Kellermann2008-12-301-0/+3
| | | | | | | This is a rather huge patch, which unfortunately cannot be splitted. Instead of using our custom ioops.h library, convert everything to use the GLib main loop.
* update & main_notify: migrate from pthread to glib threadsThomas Jansen2008-12-281-2/+2
|
* added prefix to header macrosMax Kellermann2008-10-311-2/+2
| | | | | | | "LOG_H" is a macro which is also used by ffmpeg/log.h. This is ffmpeg's fault, because short macros should be reserved for applications, but since it's always a good idea to choose prefixed macro names, even for applications, we are going to do that in MPD.
* main_notify: define main_task so we can use it for assertionsEric Wong2008-10-061-0/+4
| | | | | It'll be easier to keep track of what code runs in what task/thread this way.
* notify: added notify_deinit()Max Kellermann2008-09-241-0/+2
| | | | Destroy the mutex when it is not used anymore.
* Fix the problem of songs not advancing without client activityEric Wong2008-04-121-0/+34
The select() in the main event loop blocks now (saving us many unnecessary wakeups). This interacted badly with the threads that were trying to wakeup the main task via pthread_cond_signal() since the main task was not blocked on a condition variable, but on select(). So now if we detect a need to wakeup the player, we write to a pipe which select() is watching instead of blindly calling pthread_cond_signal(). git-svn-id: https://svn.musicpd.org/mpd/trunk@7347 09075e82-0dd4-0310-85a5-a0d7c8717e4f