-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Concurrent increment of value keep getting unexpected results #255
Comments
Hi @dakabang , you are right, there is an issue with Thanks for reporting the issue. I'll have a look at it. |
Thanks for your reply, I'm concerned that the implementation of |
Resolved with c9520f1 |
Excellent! Thanks for your help. |
@greg7mdp One more request, could you please release a latest version? |
Sure, @dakabang , I will, but I may not be able to do it before next weekend though. Thanks for the bug report (and using phmap :-) |
Actually, I can tag a new release now, but will update vcpkg and conan later. |
New release 1.4.1 tagged. |
Hi @greg7mdp
I found out that concurrent increment of value using
parallel_flat_hash_map
keep getting unexpected results, inmain.cc
,I use 10 threads to increase value of same key 1000 times, instead of getting
10 * 1000 = 10000
, the program keep getting wrong results.compile command
main.cc
The text was updated successfully, but these errors were encountered: