From 5c3c5066382a22b1bf19ebbcc320e222b6812bfb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 10 Jan 2013 00:57:18 +0100 Subject: GlobalEvents: lock-less operation using std::atomic Use a bit field instead of a mutex-protected bool array. --- src/GlobalEvents.hxx | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/GlobalEvents.hxx') diff --git a/src/GlobalEvents.hxx b/src/GlobalEvents.hxx index ee977936..458e77d7 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 */ -- cgit v1.2.3