concurrencykit / ck

Concurrency primitives, safe memory reclamation mechanisms and non-blocking (including lock-free) data structures designed to aid in the research, design and implementation of high performance concurrent systems developed in C99+.
http://concurrencykit.org/
Other
2.38k stars 313 forks source link

ck_sequence: relax sequence increment from atomic to regular store #41

Closed cota closed 9 years ago

cota commented 9 years ago

The atomicity of the sequence number's increment is unnecessary, since there should be only one writer at any given time. Fix it by changing it for a regular increment + store.

Signed-off-by: Emilio G. Cota cota@braap.org