tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: __{read,write}_once



On 06.11.2019 12:51, Maxime Villard wrote:
> Le 06/11/2019 à 12:38, Martin Husemann a écrit :
>> On Wed, Nov 06, 2019 at 12:31:37PM +0100, Maxime Villard wrote:
>>>     __read_once(x)
>>>     __write_once(x, val)
>>
>> The names are really not helpfull for understanding what is supposed
>> to happen
>> here.
> 
> I don't know if you have a better suggestion, but it's basically the naming
> convention that seems to have been used for several years already. Maybe we
> could have something more explicit, like
> 
>     __{read,write}_racy() or
>     __{read,write}_parallel() or
>     __{read,write}_concurrent()
> 
> But the last one is too long I think.

I propose __write_relaxed() / __read_relaxed().

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index