[Cppcms-users] thread_pool questions
Brought to you by:
artyom-beilis
From: Marcel H. <ke...@co...> - 2012-05-03 10:22:46
|
Hi everyone, my last idea was to extend the thread pool and have some questions about it. As far as I know, async methods should not run too long, because they block the entire service loop, right?! Also i have some other questions: At first: Could i "avoid" the thread pool and create a std::thread instead? (Maybe i can give the thread pool a reference the thread object) Second: Would it be possible to give a std::function object to the thread_pool? Third: What about callbacks? If a thread is finished you could define a callback where you can define further operations (like evaluating the result of the thread) Regards Marcel |