C++ Logo

std-discussion

Advanced search

Re: Does the C++ abstract machine recognize a temporal order of execution?

From: Thiago Macieira <thiago_at_[hidden]>
Date: Wed, 10 Jun 2026 17:37:42 -0700
On Wednesday, 10 June 2026 16:24:30 Pacific Daylight Time Simon Cooke wrote:
> If you don't want that, you need acquire semantics, which will prevent the
> write from down after the timestamp() call in #2

This is the essence of the argument: reading from the monotonic clock should
be an acquire barrier. The Standard does not say it is, but I think it should.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2026-06-11 00:37:58