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

SyncQueue.hpp中函数Count() #27

Open
gocpplua opened this issue Feb 2, 2019 · 3 comments
Open

SyncQueue.hpp中函数Count() #27

gocpplua opened this issue Feb 2, 2019 · 3 comments

Comments

@gocpplua
Copy link

gocpplua commented Feb 2, 2019

你好,请问为什么SyncQueue.hpp中函数Count(),不用加上锁

@cailun01
Copy link

你好,请问为什么SyncQueue.hpp中函数Count(),不用加上锁

我认为是作者写错了。Count函数也需要加锁。而且Count函数的功能和Size函数重复了。

@gocpplua
Copy link
Author

你好,请问为什么SyncQueue.hpp中函数Count(),不用加上锁

我认为是作者写错了。Count函数也需要加锁。而且Count函数的功能和Size函数重复了。

等作者给回复了

@qicosmos
Copy link
Owner

需要加锁。

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

3 participants