This commit is contained in:
Neeflix
2018-09-05 23:54:07 +02:00
parent 69005cc937
commit 72a0a73182

View File

@@ -65,7 +65,7 @@ void EventNotifier::notify()
} }
// getting a guard and calling all registered handlers // getting a guard and calling all registered handlers
std::lock_guard event_handler_guard<std::mutex>(this->event_handler_mutex); std::lock_guard<std::mutex> event_handler_guard(this->event_handler_mutex);
for(auto handler : this->event_handlers) for(auto handler : this->event_handlers)
{ {
boost::thread handler_caller(boost::bind(&IEventHandler::handle, handler, event)); boost::thread handler_caller(boost::bind(&IEventHandler::handle, handler, event));