tmp/tmp8oer1094/{from.md → to.md}
RENAMED
|
@@ -35,11 +35,11 @@ namespace std {
|
|
| 35 |
~barrier();
|
| 36 |
|
| 37 |
barrier(const barrier&) = delete;
|
| 38 |
barrier& operator=(const barrier&) = delete;
|
| 39 |
|
| 40 |
-
|
| 41 |
void wait(arrival_token&& arrival) const;
|
| 42 |
|
| 43 |
void arrive_and_wait();
|
| 44 |
void arrive_and_drop();
|
| 45 |
|
|
@@ -123,11 +123,11 @@ destroyed. — *end note*]
|
|
| 123 |
|
| 124 |
*Throws:* Any exception thrown by `CompletionFunction`’s move
|
| 125 |
constructor.
|
| 126 |
|
| 127 |
``` cpp
|
| 128 |
-
|
| 129 |
```
|
| 130 |
|
| 131 |
*Preconditions:* `update > 0` is `true`, and `update` is less than or
|
| 132 |
equal to the expected count for the current barrier phase.
|
| 133 |
|
|
|
|
| 35 |
~barrier();
|
| 36 |
|
| 37 |
barrier(const barrier&) = delete;
|
| 38 |
barrier& operator=(const barrier&) = delete;
|
| 39 |
|
| 40 |
+
arrival_token arrive(ptrdiff_t update = 1);
|
| 41 |
void wait(arrival_token&& arrival) const;
|
| 42 |
|
| 43 |
void arrive_and_wait();
|
| 44 |
void arrive_and_drop();
|
| 45 |
|
|
|
|
| 123 |
|
| 124 |
*Throws:* Any exception thrown by `CompletionFunction`’s move
|
| 125 |
constructor.
|
| 126 |
|
| 127 |
``` cpp
|
| 128 |
+
arrival_token arrive(ptrdiff_t update = 1);
|
| 129 |
```
|
| 130 |
|
| 131 |
*Preconditions:* `update > 0` is `true`, and `update` is less than or
|
| 132 |
equal to the expected count for the current barrier phase.
|
| 133 |
|