in loop(), the std::function is now reset after the task is executed

This commit is contained in:
Kjistóf 2016-11-27 19:57:27 +01:00
parent 923680f44b
commit caafcfbaf9

View File

@ -195,5 +195,6 @@ void thread_pool::loop()
queue.pop_front();
}
fun();
fun = nullptr;
}
}