Groups | Search | Server Info | Login | Register


Groups > comp.std.c > #6645

Re: Making the creation of atomic_flag optional

From Philipp Klaus Krause <pkk@spth.de>
Newsgroups comp.std.c
Subject Re: Making the creation of atomic_flag optional
Date 2024-02-08 08:44 +0100
Message-ID <uq20p4$1h47g$1@solani.org> (permalink)
References <upifhv$19809$1@solani.org> <upl6t2$33jod$1@dont-email.me>

Show all headers | View raw


Am 03.02.24 um 12:09 schrieb David Brown:
> 
> I think it is fine to implement parts of the atomics - you just can't 
> define the __SDTC_NO_ATOMICS__ symbol unless you cover it all.

The problem here is that there are architectures, where atomics could be 
implemented except for one small issue - you can't use a char array (or 
allocated memory) as an atomic_flag. IMO, it would be good if this 
situation could be reflected in the standard.

Philipp

Back to comp.std.c | Previous | NextPrevious in thread | Find similar


Thread

Making the creation of atomic_flag optional Philipp Klaus Krause <pkk@spth.de> - 2024-02-02 11:18 +0100
  Re: Making the creation of atomic_flag optional David Brown <david.brown@hesbynett.no> - 2024-02-03 12:09 +0100
    Re: Making the creation of atomic_flag optional Philipp Klaus Krause <pkk@spth.de> - 2024-02-08 08:44 +0100

csiph-web