We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
day13里的ThreadPool.h中58行的 tasks_.emplace_back([task]() { (*task)(); });应修改为 tasks_.emplace([task]() { (*task)(); });,否则报错
tasks_.emplace_back([task]() { (*task)(); });
tasks_.emplace([task]() { (*task)(); });
The text was updated successfully, but these errors were encountered:
作者将vector和queue的操作搞混了,不过这个线程池的代码我在其他地方看到过,也是一样错误。
Sorry, something went wrong.
No branches or pull requests
day13里的ThreadPool.h中58行的
tasks_.emplace_back([task]() { (*task)(); });
应修改为tasks_.emplace([task]() { (*task)(); });
,否则报错The text was updated successfully, but these errors were encountered: