From 219c1d9c5db743c8c255f0fe5e0b8cdfc0294bbd Mon Sep 17 00:00:00 2001 From: Wesley Maxey Date: Thu, 29 Jul 2021 11:20:29 -0700 Subject: [PATCH] Rephrase barrier docs to use 'parity' more --- docs/extended_api/synchronization_primitives/barrier.md | 2 +- .../synchronization_primitives/barrier/wait_parity.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/extended_api/synchronization_primitives/barrier.md b/docs/extended_api/synchronization_primitives/barrier.md index c46270363b..e10d95effb 100644 --- a/docs/extended_api/synchronization_primitives/barrier.md +++ b/docs/extended_api/synchronization_primitives/barrier.md @@ -23,7 +23,7 @@ It has the same interface and semantics as [`cuda::std::barrier`], with the | [`cuda::barrier::init`] | Initialize a `cuda::barrier`. `(friend function)` | | [`cuda::device::barrier_native_handle`] | Get the native handle to a `cuda::barrier`. `(function template)` | -| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on a `specific` phase of the barrier | +| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on or check the parity of the barrier. | ## NVCC `__shared__` Initialization Warnings diff --git a/docs/extended_api/synchronization_primitives/barrier/wait_parity.md b/docs/extended_api/synchronization_primitives/barrier/wait_parity.md index 475f15e38a..58c6bec9ce 100644 --- a/docs/extended_api/synchronization_primitives/barrier/wait_parity.md +++ b/docs/extended_api/synchronization_primitives/barrier/wait_parity.md @@ -12,8 +12,8 @@ __host__ __device__ void cuda::std::barrier::wait_parity(bool phase); __host__ __device__ bool cuda::std::barrier::try_wait_parity(bool phase); ``` -`barrier::wait_parity` stalls execution while the barrier is not at the specified phase. -`barrier::try_wait_parity` queries the the state of the barrier against the specified phase. +`barrier::wait_parity` stalls execution while the barrier is not at the specified parity. +`barrier::try_wait_parity` returns true if the parity of the barrier matches the given parity. ## Return Value