meeeerged

This commit is contained in:
Jonas Zeunert
2018-06-07 23:29:15 +02:00
parent 1f0fd916cc
commit f87e7c4c6f
9 changed files with 50 additions and 39 deletions

View File

@@ -56,7 +56,7 @@ void EventNotifier::notify()
std::lock_guard<std::mutex> event_handler_guard(event_handler_mutex);
for(auto handler : event_handler)
{
boost::thread handler_caller(handler, &EventHandler::handle, event);
boost::thread handler_caller(boost::bind(&EventHandler::handle, handler, event));
if(!handler_caller.timed_join(boost::posix_time::milliseconds(HANDLER_TIMEOUT)))
{