3 ms·
> I've been using a compiler fence to force reloads from memory to prevent -O3 from optimising away my variables/structs changing by other threads I would high
by loeg 3y ago
> I've been using a compiler fence to force reloads from memory to prevent -O3 from optimising away my variables/structs changing by other threads
I would highly recommend using the language standard atomic primitives instead.