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

remove LOCK and CAS in bvar counter #2675

Open
oathdruid opened this issue Jul 2, 2024 · 0 comments
Open

remove LOCK and CAS in bvar counter #2675

oathdruid opened this issue Jul 2, 2024 · 0 comments

Comments

@oathdruid
Copy link
Contributor

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
bvar::detail::AgentCombiner use LOCK or CAS operation as a general implementation for counter. But when look into specific counters like Adder/Maxer/IntRecorder/LatencyRecorder, the LOCK or CAS operation may be avoidable.

Describe the solution you'd like (描述你期望的解决方法)
some method demonstrated here: use-counter-with-bvar

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

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