[Top][All Lists]

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

Atomic operations

From: Marc Nieper-Wißkirchen
Subject: Atomic operations
Date: Mon, 30 Aug 2021 12:45:55 +0200

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


reply via email to

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