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

change lock to interlocked atomics #59

Closed
wants to merge 5 commits into from

Conversation

MadL1me
Copy link

@MadL1me MadL1me commented Dec 16, 2023

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Using lock to increment _txCounter

Issue Number: N/A

What is the new behavior?

Now implementation uses lock-free CAS based value computation, which would work faster, without allocating new object and creating a monitor.

Other information

None

@rekby
Copy link
Member

rekby commented Feb 9, 2024

Hello, sorry for late response.

Thanks for the fix :)
Can you rebase your PR and fix linter issues?

@rekby rekby enabled auto-merge February 20, 2024 06:25
auto-merge was automatically disabled April 23, 2024 16:34

Pull request was closed

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

Successfully merging this pull request may close these issues.

4 participants