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

Checking parity in store #5

Open
tleplaearthur opened this issue Jun 22, 2020 · 1 comment
Open

Checking parity in store #5

tleplaearthur opened this issue Jun 22, 2020 · 1 comment

Comments

@tleplaearthur
Copy link

In the current store implementation, why doesn't the thread have to verify that seq_ is an even value? If it doesn't, it seems that the value of seq_ can permanently stay odd if two threads call store concurrently. Maybe I am misunderstanding something.

@rigtorp
Copy link
Owner

rigtorp commented Jun 22, 2020

There can only be one writer thread.

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