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

Thread safety #24

Closed
pavel-odintsov opened this issue Dec 15, 2016 · 2 comments
Closed

Thread safety #24

pavel-odintsov opened this issue Dec 15, 2016 · 2 comments

Comments

@pavel-odintsov
Copy link

Hello!

I checked code very briefly and haven't found answer to my question.

Is it possible to use counter from multiple threads which could increment in simultaneously?

Thank you!

@jupp0r
Copy link
Owner

jupp0r commented Dec 16, 2016

Hi, Counters are backed by std::atomic<uint64_t> and can be used from different threads.

@pavel-odintsov
Copy link
Author

pavel-odintsov commented Dec 16, 2016 via email

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