|
|
|
|
|
by sa46
1033 days ago
|
|
Oh neat, that’s what that’s called. I did something similar in ignorance. I needed a histogram metric with multiple lock-free writers and a single reader. - create two ring buffers (left/right; I called them hot/cold) - store the hot ring buffer in an atomic pointer - single reader swaps hot and cold and waits for writers to finish |
|