IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.0.0b1
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

mbarrier_try_wait_parity_shared

mbarrier_try_wait_parity_shared[type: AnyType](addr: UnsafePointer[type, address_space=AddressSpace.SHARED], phase: Int32, ticks: Int32)

Wait for completion of a barrier phase with timeout.

Waits for the shared memory barrier to complete the specified phase, or until the timeout period expires. Only supported on NVIDIA GPUs.

Parameters:

  • type (AnyType): The type of the memory barrier.

Args: