C++ Logo

std-discussion

Advanced search

Re: Synchronization of atomic notify and wait

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 25 Jul 2022 17:49:58 -0700
On Monday, 25 July 2022 17:26:56 PDT Ryan Nicholl wrote:
> 64 bit wait is just two 32bit waits right next to each other... not
> complicated with waitv. So yes, waitv allows any size wait.

Right, for 64-bit you could do that. But you couldn't do a half 32-bit wait to
support uint16_t or, for that matter, a quarter-word wait to wait on an
atomic<bool> or atomic_flag.

Anyway, that can't be fixed now until the next library ABI break.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2022-07-26 00:49:59