Skip to main content
Log in

Mojo function

mbarrier_test_wait

mbarrier_test_wait[type: AnyType](shared_mem: UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin], state: Int) -> Bool

Test waiting for the memory barrier.

Args:

  • shared_mem (UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin]): Shared memory barrier.
  • state (Int): Memory barrier arrival state.

Returns:

True if all particpating thread arrived to the barrier.