This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Consensus on MT-, AS- and AC-Safety docs.


On Sun, Dec 01, 2013 at 07:06:05PM +0100, Torvald Riegel wrote:
> > It
> > doesn't cover all of the richness of the atomics of recent C and C++
> > standards, but a basic memory model in which they can fit in perfectly
> > is there: concurrent writes or reads and writes to the same memory
> > location, without intervening synchronization operations, invoke
> > undefined behavior.  This is the memory model that POSIX exposes to
> > users.
> 
> That's not a complete definition, obviously.  That's an attempt at
> describing the rough idea behind a memory model.

That is a memory model. It may not be the ideal memory model we want,
but it's a memory model because it defines the situations in which
memory accesses are well-defined and explicitly leaves the behavior
completely undefined in all other cases.

Rich


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]