diff options
author | Max Kellermann <max@duempel.org> | 2013-01-10 00:57:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-10 00:57:18 +0100 |
commit | 5c3c5066382a22b1bf19ebbcc320e222b6812bfb (patch) | |
tree | 482eb1db3aba5df012ea598db39a346993644360 /src/GlobalEvents.hxx | |
parent | ecd5eb02c5094d3160db9d92937f7011e172c254 (diff) | |
download | mpd-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.hxx | 7 |
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 */ |