changed template

This commit is contained in:
Neeflix
2018-08-30 23:41:28 +02:00
parent 4a715d6a6c
commit e8548991a9
3 changed files with 7 additions and 6 deletions

View File

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