3 ms·
So you think wrapping every single access to that shared memory structure in barriers would do the trick? I should dig out that code and try, I am curious now.
by rdtsc 11y ago
So you think wrapping every single access to that shared memory structure in barriers would do the trick? I should dig out that code and try, I am curious now. But that would be kind of an large change. Now the volatile modifier is in one place only -- where data is defined not when it is accessed.
- Avernar 11y agoIf you do it correctly it should work. I'm curious if that code is running on a multi core (or even hyperthreaded) CPU.