aboutsummaryrefslogtreecommitdiff
path: root/src/event_pipe.c
Commit message (Collapse)AuthorAge
* added G_LOG_DOMAIN macros to several librariesMax Kellermann2009-02-19
| | | | | Define the GLib logging domain in the following libraries: conf, daemon, event_pipe, log.
* event_pipe: remove the GLib source from the main contextMax Kellermann2009-01-10
| | | | Free memory before exiting.
* event_pipe: removed the unused function event_pipe_wait()Max Kellermann2009-01-04
|
* utils: removed unused functionsMax Kellermann2009-01-03
| | | | | Removed all allocation functions, xwrite(), xread(), ARRAY_SIZE(). Those have been superseded by GLib.
* event_pipe: use GLib loggingMax Kellermann2009-01-03
|
* event_pipe: use close() instead of xclose()Max Kellermann2009-01-03
| | | | | xclose() aims to be the signal safe version of close(). However during cleanup, this isn't important.
* event_pipe: use _pipe() on WIN32Max Kellermann2009-01-03
| | | | | Windows has no pipe(), it only has _pipe() with two additional parameters.
* event_pipe: moved variable "main_task" to main.cMax Kellermann2009-01-03
|
* event_pipe: replaced PIPE_EVENT_SIGNAL with main_notifyMax Kellermann2009-01-02
| | | | | | There is only one location using PIPE_EVENT_SIGNAL: to synchronize player_command() with player_command_finished(). Use the "notify" library instead of the event_pipe here.
* event_pipe: added event_pipe_emit_fast()Max Kellermann2009-01-01
| | | | | | event_pipe_emit_fast() is aimed for use in signal handlers: it doesn't lock the mutex, and doesn't log on error. That makes it potentially lossy, but for its intended use, that does not matter.
* event_pipe: added pipe_event enum and callbacksMax Kellermann2009-01-01
| | | | | | | | | Make the event_pipe (formerly main_notify) send/receive a set of events, with a callback for each one. The default event PIPE_EVENT_SIGNAL does not have a callback. It is still there for waking up the main thread, when it is waiting for the player thread.
* event_pipe: renamed functions from main_notify_* to event_pipe_*Max Kellermann2009-01-01
| | | | Continuing the previous patch.
* main_notify: renamed source to event_pipe.cMax Kellermann2009-01-01
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.