debug messages
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user