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.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!