[libcxx-commits] [libcxx] [libc++] Save duration/timeout locally for condition_variable waits (PR #148330)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 14 08:21:45 PDT 2025


ldionne wrote:

I tend to agree with other reviewers -- the API is specified to take a `const&`, so you're not allowed to assume that we make a copy locally. At the same time, I'm kind of conflicted because the user code does appear to be correct: accesses to `timeout` are guarded by a lock as one would expect.

Can you file a LWG issue for this? I'd be OK with moving ahead with a fix if WG21 agrees that this is not a wording bug, and that implementations are expected to make this work.

https://github.com/llvm/llvm-project/pull/148330


More information about the libcxx-commits mailing list