tmp/tmpyfheipzd/{from.md → to.md}
RENAMED
|
@@ -37,18 +37,18 @@ template<class Callable, class... Args>
|
|
| 37 |
*Mandates:* `is_invocable_v<Callable, Args...>` is `true`.
|
| 38 |
|
| 39 |
*Effects:* An execution of `call_once` that does not call its `func` is
|
| 40 |
a *passive* execution. An execution of `call_once` that calls its `func`
|
| 41 |
is an *active* execution. An active execution calls *INVOKE*(
|
| 42 |
-
std::forward\<Callable\>(func),
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
`call_once`
|
| 47 |
-
|
| 48 |
-
execution
|
| 49 |
-
execution.
|
| 50 |
|
| 51 |
[*Note 1*: Passive executions allow other threads to reliably observe
|
| 52 |
the results produced by the earlier returning execution. — *end note*]
|
| 53 |
|
| 54 |
*Synchronization:* For any given `once_flag`: all active executions
|
|
|
|
| 37 |
*Mandates:* `is_invocable_v<Callable, Args...>` is `true`.
|
| 38 |
|
| 39 |
*Effects:* An execution of `call_once` that does not call its `func` is
|
| 40 |
a *passive* execution. An execution of `call_once` that calls its `func`
|
| 41 |
is an *active* execution. An active execution calls *INVOKE*(
|
| 42 |
+
std::forward\<Callable\>(func),
|
| 43 |
+
std::forward\<Args\>(args)...) [[func.require]]. If such a call to
|
| 44 |
+
`func` throws an exception the execution is *exceptional*, otherwise it
|
| 45 |
+
is *returning*. An exceptional execution propagates the exception to the
|
| 46 |
+
caller of `call_once`. Among all executions of `call_once` for any given
|
| 47 |
+
`once_flag`: at most one is a returning execution; if there is a
|
| 48 |
+
returning execution, it is the last active execution; and there are
|
| 49 |
+
passive executions only if there is a returning execution.
|
| 50 |
|
| 51 |
[*Note 1*: Passive executions allow other threads to reliably observe
|
| 52 |
the results produced by the earlier returning execution. — *end note*]
|
| 53 |
|
| 54 |
*Synchronization:* For any given `once_flag`: all active executions
|