seqlock Questions

1

Solved

I want to implement a sequence lock in C++23. If possible, it should not rely on non-standard extensions or undefined behavior. There is the proposal P1478R8: Byte-wise atomic memcpy, which covers ...
Shirring asked 22/8 at 21:14

1

I am studying the implementation of Seqlock. However all sources I found implement them differently. Linux Kernel Linux kernel implements it like this: static inline unsigned __read_seqcount_beg...
Manda asked 2/6, 2019 at 23:30

1

Solved

I would like to cobble together a uint64 atomic counter from atomic uint32s. The counter has a single writer and multiple readers. The writer is a signal handler so it must not block. My idea is t...
Wellfixed asked 9/2, 2019 at 21:35

2

Using a simplified version of a basic seqlock , gcc reorders a nonatomic load up across an atomic load(memory_order_seq_cst) when compiling the code with -O3. This reordering isn't observed when co...
Alisaalisan asked 30/4, 2016 at 18:3

2

I want to write a seqlock using c++11 atomic library. I have read some questions about seqlock on stackoverflow, but no one helped me. The algorithm I use is common, and you can find it everywhere....
Cobalt asked 3/12, 2013 at 4:6
1

© 2022 - 2024 — McMap. All rights reserved.