C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::atomic_pointer_pair

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 29 Dec 2025 08:46:23 -0300
On Sunday, 28 December 2025 21:59:12 Brasilia Standard Time Frederick
Virchanza Gotham via Std-Proposals wrote:
> but it turns out that it's not lockfree.

In addition to what Jonathan said, this is a QoI problem. The Standard's job
is done and has provided you with an API for double-pointer-sized atomics and
a way to query if they are lock-free.

If your implementation lacks support for native instructions on hardware that
definitely has it, file a bug report.

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

Received on 2025-12-29 11:46:33