tmp/tmpri8u1ijx/{from.md → to.md}
RENAMED
|
@@ -126,14 +126,14 @@ that state ready ([[futures.state]]).
|
|
| 126 |
|
| 127 |
*Throws:*
|
| 128 |
|
| 129 |
- `future_error` if its shared state already has a stored value or
|
| 130 |
exception, or
|
| 131 |
-
- for the first version, any exception thrown by the
|
| 132 |
-
`R`, or
|
| 133 |
-
- for the second version, any exception thrown by the
|
| 134 |
-
of `R`.
|
| 135 |
|
| 136 |
*Error conditions:*
|
| 137 |
|
| 138 |
- `promise_already_satisfied` if its shared state already has a stored
|
| 139 |
value or exception.
|
|
@@ -165,20 +165,27 @@ void promise<void>::set_value_at_thread_exit();
|
|
| 165 |
*Effects:* Stores the value `r` in the shared state without making that
|
| 166 |
state ready immediately. Schedules that state to be made ready when the
|
| 167 |
current thread exits, after all objects of thread storage duration
|
| 168 |
associated with the current thread have been destroyed.
|
| 169 |
|
| 170 |
-
*Throws:*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
|
| 172 |
*Error conditions:*
|
| 173 |
|
| 174 |
- `promise_already_satisfied` if its shared state already has a stored
|
| 175 |
value or exception.
|
| 176 |
- `no_state` if `*this` has no shared state.
|
| 177 |
|
| 178 |
``` cpp
|
| 179 |
-
void
|
| 180 |
```
|
| 181 |
|
| 182 |
*Effects:* Stores the exception pointer `p` in the shared state without
|
| 183 |
making that state ready immediately. Schedules that state to be made
|
| 184 |
ready when the current thread exits, after all objects of thread storage
|
|
|
|
| 126 |
|
| 127 |
*Throws:*
|
| 128 |
|
| 129 |
- `future_error` if its shared state already has a stored value or
|
| 130 |
exception, or
|
| 131 |
+
- for the first version, any exception thrown by the constructor
|
| 132 |
+
selected to copy an object of `R`, or
|
| 133 |
+
- for the second version, any exception thrown by the constructor
|
| 134 |
+
selected to move an object of `R`.
|
| 135 |
|
| 136 |
*Error conditions:*
|
| 137 |
|
| 138 |
- `promise_already_satisfied` if its shared state already has a stored
|
| 139 |
value or exception.
|
|
|
|
| 165 |
*Effects:* Stores the value `r` in the shared state without making that
|
| 166 |
state ready immediately. Schedules that state to be made ready when the
|
| 167 |
current thread exits, after all objects of thread storage duration
|
| 168 |
associated with the current thread have been destroyed.
|
| 169 |
|
| 170 |
+
*Throws:*
|
| 171 |
+
|
| 172 |
+
- `future_error` if its shared state already has a stored value or
|
| 173 |
+
exception, or
|
| 174 |
+
- for the first version, any exception thrown by the constructor
|
| 175 |
+
selected to copy an object of `R`, or
|
| 176 |
+
- for the second version, any exception thrown by the constructor
|
| 177 |
+
selected to move an object of `R`.
|
| 178 |
|
| 179 |
*Error conditions:*
|
| 180 |
|
| 181 |
- `promise_already_satisfied` if its shared state already has a stored
|
| 182 |
value or exception.
|
| 183 |
- `no_state` if `*this` has no shared state.
|
| 184 |
|
| 185 |
``` cpp
|
| 186 |
+
void set_exception_at_thread_exit(exception_ptr p);
|
| 187 |
```
|
| 188 |
|
| 189 |
*Effects:* Stores the exception pointer `p` in the shared state without
|
| 190 |
making that state ready immediately. Schedules that state to be made
|
| 191 |
ready when the current thread exits, after all objects of thread storage
|