Skip to content
New issue

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的笔误 #76

Open
Mospic opened this issue Jan 19, 2024 · 1 comment
Open

day13的笔误 #76

Mospic opened this issue Jan 19, 2024 · 1 comment

Comments

@Mospic
Copy link

Mospic commented Jan 19, 2024

day13里的ThreadPool.h中58行的 tasks_.emplace_back([task]() { (*task)(); });应修改为 tasks_.emplace([task]() { (*task)(); });,否则报错

@Hundaozi
Copy link

作者将vector和queue的操作搞混了,不过这个线程池的代码我在其他地方看到过,也是一样错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants