C++ Logo

sg5

Advanced search

Intent of implementation-defined case of thread local dynamic init evaluated by atomic block?

From: Hubert Tong <hubert.reinterpretcast_at_[hidden]>
Date: Thu, 14 Jul 2022 20:20:58 -0400
In DTS 12907, 8.8 [stmt.tx] paragraph 6, bullet 6.7:

   - dynamic initialization of a variable with thread storage duration.

Is this intended to cover the case where the dynamic initialization for a
non-local variable of thread storage duration is evaluated within the
atomic block because the initialization was deferred
([basic.start.dynamic]) and can be deferred no further?

Received on 2022-07-15 00:21:28