debug messages

This commit is contained in:
Jonas Zeunert
2019-11-07 22:20:13 +01:00
parent 92f2279e9b
commit 43889da749

View File

@@ -72,8 +72,10 @@ void EventNotifier::notify()
// getting a guard and calling all registered handlers
std::lock_guard<std::mutex> event_handler_guard(this->event_handler_mutex);
CLOG(INFO, INPUT_LOGGER) << "Notified " << this->event_handlers.size() << " EventHandlers";
for(auto handler : this->event_handlers)
{
CLOG(INFO, INPUT_LOGGER) << "Notify " << handler;
boost::thread handler_caller(boost::bind(&EventHandler::handle, handler, event));
if(!handler_caller.timed_join(boost::posix_time::milliseconds(INPUT_HANDLER_TIMEOUT_MILLI)))