aboutsummaryrefslogtreecommitdiffstats
path: root/src/event_pipe.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-01 18:47:25 +0100
committerMax Kellermann <max@duempel.org>2009-01-01 18:47:25 +0100
commite93136ef0fac69b4bb7f02ba7e3b348827d597ea (patch)
treef7bffac522072ac0a32efd3cb4c1d499cbb725f0 /src/event_pipe.h
parentecb20c5f7e728693bcb67981fdde44832f1ed028 (diff)
downloadmpd-e93136ef0fac69b4bb7f02ba7e3b348827d597ea.tar.gz
mpd-e93136ef0fac69b4bb7f02ba7e3b348827d597ea.tar.xz
mpd-e93136ef0fac69b4bb7f02ba7e3b348827d597ea.zip
event_pipe: added event_pipe_emit_fast()
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.
Diffstat (limited to 'src/event_pipe.h')
-rw-r--r--src/event_pipe.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/event_pipe.h b/src/event_pipe.h
index 3126df9cd..8da10c759 100644
--- a/src/event_pipe.h
+++ b/src/event_pipe.h
@@ -56,6 +56,13 @@ event_pipe_register(enum pipe_event event, event_pipe_callback_t callback);
void event_pipe_emit(enum pipe_event event);
+/**
+ * Similar to event_pipe_emit(), but 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.
+ */
+void event_pipe_emit_fast(enum pipe_event event);
+
void event_pipe_signal(void);
void event_pipe_wait(void);