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

condition_variable sig_buffer没有和wait()函数搭配使用 #386

Open
TheSeanParker opened this issue Feb 9, 2025 · 0 comments
Open

Comments

@TheSeanParker
Copy link

TheSeanParker commented Feb 9, 2025

您好,作者,下面是我写的文章,主要是咱们的条件变量没有和wait函数搭配,失去了它的作用,加在代码里也是多余的内容!
https://zhuanlan.zhihu.com/p/22501599495
要么删除condition_variable sig_buffer,要么加上sig_buffer.wait(mtx_buffer)

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

1 participant