Seqlock icon indicating copy to clipboard operation
Seqlock copied to clipboard

Checking parity in store

Open tleplaearthur opened this issue 5 years ago • 1 comments

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.

tleplaearthur avatar Jun 22 '20 20:06 tleplaearthur

There can only be one writer thread.

rigtorp avatar Jun 22 '20 20:06 rigtorp