C++ Logo

liaison

Advanced search

Re: [isocpp-wg14/wg21-liaison] [isocpp-core] Review of CWG2970 Races with volatile sig_atomic_t bit-fields

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Tue, 21 Jan 2025 11:26:19 +0100
Hello,

Il 20/01/25 22:28, Jens Maurer via Core ha scritto:
> I'm trying to get at least a few small/trivial edits into our queue
> for Hagenberg:
>
> https://cplusplus.github.io/CWG/issues/2970.html
>
> This essentially says that bit-fields of type volatile sig_atomic_t
> don't get a special dispensation regarding data races in signal handlers.

While this sounds very reasonable, should we find some alignment with
WG14? AFAICS, N3435 only talks about objects of type `volatile
sig_atomic_t`, and bit-fields are objects in C as well. Or this is about
some multithreading clause that doesn't apply to C?

https://open-std.org/JTC1/SC22/WG14/www/docs/n3435.pdf

Thank you,
--
Giuseppe D'Angelo

Received on 2025-01-21 10:26:25