Liste des Groupes | Revenir à cl c++ |
On 5/26/2025 2:58 PM, jseigh wrote:It's basically the equivalent of linux membarrier(). I don't knowand asymmetric memory barriers of course.Interesting, thanks Joe! Fwiw, I think, something like FlushProcessWriteBuffers() should be in a new C++ std? Perhaps, allow a system to use DWCAS without resorting to not lock-free wrt the checks? Damn it. ;^o Ouch.
>
https://threadnought.wordpress.com/2025/05/26/wait-free-hazard- pointers- using-std-atomics/
>
Looks like it runs faster without the conditional branch.
>
Not sure it's a new idea. The only wait-free version of hazard pointers
I've seen so far involves a storage to storage move instruction which
might not be available on all platforms.
https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/ nf-processthreadsapi-flushprocesswritebuffers
Sometimes I think that function was specifically designed for exotic RCU, ect...
Les messages affichés proviennent d'usenet.