Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit c18427d

Browse files
committed
Rephrase barrier docs to use 'parity' more
1 parent f1e2562 commit c18427d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/extended_api/synchronization_primitives/barrier.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ It has the same interface and semantics as [`cuda::std::barrier`], with the
2323

2424
| [`cuda::barrier::init`] | Initialize a `cuda::barrier`. `(friend function)` |
2525
| [`cuda::device::barrier_native_handle`] | Get the native handle to a `cuda::barrier`. `(function template)` |
26-
| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on a `specific` phase of the barrier |
26+
| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on or check the parity of the barrier. |
2727

2828
## NVCC `__shared__` Initialization Warnings
2929

docs/extended_api/synchronization_primitives/barrier/wait_parity.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ __host__ __device__ void cuda::std::barrier::wait_parity(bool phase);
1212
__host__ __device__ bool cuda::std::barrier::try_wait_parity(bool phase);
1313
```
1414

15-
`barrier::wait_parity` stalls execution while the barrier is not at the specified phase.
16-
`barrier::try_wait_parity` queries the the state of the barrier against the specified phase.
15+
`barrier::wait_parity` stalls execution while the barrier is not at the specified parity.
16+
`barrier::try_wait_parity` returns true if the parity of the barrier matches the given parity.
1717

1818
## Return Value
1919

0 commit comments

Comments
 (0)