[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Module suggestion: Atomic operations
From: |
Bruno Haible |
Subject: |
Re: Module suggestion: Atomic operations |
Date: |
Wed, 01 Jul 2020 23:37:11 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-179-generic; KDE/5.18.0; x86_64; ; ) |
Marc Nieper-Wißkirchen wrote in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00289.html>:
> C11 has introduced atomic types and atomic operations. When they are not
> available, one can use locks/mutexes instead.
>
> It would be nice if there was a Gnulib module that abstracts over this,
> much like the threadlib module and friends abstract over a specific
> threading implementation.
Practically speaking, the GCC built-ins available since GCC 4.1, and then
later extended on GCC 4.7, fulfill most of the needs regarding atomics. Only
AIX and SUNpro C on Solaris need to be handled on a case-by-case basis.
Bruno
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Module suggestion: Atomic operations,
Bruno Haible <=