Mojo function
mbarrier_try_wait_parity_shared[type: AnyType](addr: UnsafePointer[type, addr.origin, 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:
- addr (
UnsafePointer): Pointer to the shared memory barrier. - phase (
Int32): Phase number to wait for. - ticks (
Int32): Timeout period in nanoseconds.