Skip to main content
Log in

Mojo function

mbarrier_try_wait_parity_shared

mbarrier_try_wait_parity_shared[type: AnyType](addr: UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin], phase: SIMD[int32, 1], ticks: SIMD[int32, 1])

Waits for shared memory barrier till the completion of the phase or ticks expires.

Args:

  • addr (UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin]): Shared memory barrier.
  • phase (SIMD[int32, 1]): Phase number.
  • ticks (SIMD[int32, 1]): Time in nano seconds.