Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I correct , please read again....

2 views
Skip to first unread message

Ramine

unread,
May 11, 2016, 9:20:56 AM5/11/16
to
Hello...

Look at this scalable Asymmetric rw_mutex from Dmitry Vyukov:

https://groups.google.com/forum/#!topic/lock-free/Hv3GUlccYTc


If you have noticed he is using a compiler "_ReadWriteBarrier()",
but this doesn't emmit a fence on x86, it is just a compiler barrier,
but i am wondering how can he do it this way because loads
of the reader critical section are reordered with the following store:

reader_inside[current_thread_index] = true;


So i think it is a bug, can you please share a light on this ?



Thank you,
Amine Moulay Ramdane.
0 new messages