lightning
[Top][All Lists]
Advanced

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

Re: Atomic operations


From: Marc Nieper-Wißkirchen
Subject: Re: Atomic operations
Date: Sat, 6 Aug 2022 17:45:51 +0200

Ping.

Paulo, I am not sure whether you have already answered this question.

It would also be interesting to know whether the load and store operations are always atomic (on all supported architectures).

-- Marc

Am Mo., 30. Aug. 2021 um 12:45 Uhr schrieb Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com>:
Could we get instructions for atomic operations into GNU lightning?  At the moment, the only possibility to synchronize GNU lightning code in multi-threaded environments is to call external C code (which can be slow).

I'm thinking of a set of instructions that could be used to implement something in the scope of C's <stdatomic.h>.  In order to implement this, one can take the assembly that GCC generates on the various architectures (see also https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html).

Marc

reply via email to

[Prev in Thread] Current Thread [Next in Thread]