Sujet : Re: C compilers with at least C11 threads, atomics and membars?
De : bluemanedhawk (at) *nospam* invalid.invalid (Blue-Maned_Hawk)
Groupes : comp.lang.cDate : 05. Aug 2024, 19:51:53
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <pan$df898$6ee0fa6a$e144ee56$4d4fcc26@invalid.invalid>
References : 1 2 3
User-Agent : Pan/0.154 (Izium; 517acf4)
Scott Lurndal wrote:
Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> writes:
Standard C threading and atomics are part of the standard library, not
the compiler. I don't know what you mean by the term ‘membars’, but if
you could define that, i might be able to answer.
>
>
They are referring to various forms of barrier instructions used to
synchronize memory accesses between independent processors.
I think you'll find that the compilers do have a role to play with
respect to standard C threading and atomics.
Standard C threading and atomics are accomplished through subroutines
defined in the standard library in headers that need not be supported by
freestanding implementations.
-- Blue-Maned_Hawk│shortens to Hawk│/blu.mɛin.dʰak/│he/him/his/himself/Mr.blue-maned_hawk.srht.siteIt is the best kind of possible: theoretically!