Re: __{read,write}_once

2019-11-07 Thread David Holland
On Wed, Nov 06, 2019 at 10:14:48PM +0100, Kamil Rytarowski wrote: > I have no opinion here, just please do the right thing. Unless there are > any shortcomings it would be nice to follow closely C11. There are plenty of shortcomings in C11. We should concentrate on abstractions that are correct

Re: __{read,write}_once

2019-11-07 Thread Maxime Villard
Le 06/11/2019 à 23:41, Mindaugas Rasiukevicius a écrit : Maxime Villard wrote: - If we do not want to stick with the C11 API (its emulation), then I would suggest to use the similar terminology, e.g. atomic_load_relaxed() and atomic_store_relaxed(), or Linux READ_ONCE()/WRITE_ONCE(). There is