aboutsummaryrefslogtreecommitdiffstats
path: root/src/GlobalEvents.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-10 00:57:18 +0100
committerMax Kellermann <max@duempel.org>2013-01-10 00:57:18 +0100
commit5c3c5066382a22b1bf19ebbcc320e222b6812bfb (patch)
tree482eb1db3aba5df012ea598db39a346993644360 /src/GlobalEvents.hxx
parentecd5eb02c5094d3160db9d92937f7011e172c254 (diff)
downloadmpd-5c3c5066382a22b1bf19ebbcc320e222b6812bfb.tar.gz
mpd-5c3c5066382a22b1bf19ebbcc320e222b6812bfb.tar.xz
mpd-5c3c5066382a22b1bf19ebbcc320e222b6812bfb.zip
GlobalEvents: lock-less operation using std::atomic
Use a bit field instead of a mutex-protected bool array.
Diffstat (limited to '')
-rw-r--r--src/GlobalEvents.hxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/GlobalEvents.hxx b/src/GlobalEvents.hxx
index ee977936a..458e77d7b 100644
--- a/src/GlobalEvents.hxx
+++ b/src/GlobalEvents.hxx
@@ -58,13 +58,6 @@ namespace GlobalEvents {
void Register(Event event, Handler handler);
void Emit(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 FastEmit(Event event);
}
#endif /* MAIN_NOTIFY_H */