For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo function
wait_for_counter
def wait_for_counter(counter: Pointer[Int32, address_space=AddressSpace.SHARED], threshold: Int32)
Spin-wait until counter reaches threshold.
Args:
- counter (
Pointer[Int32, address_space=AddressSpace.SHARED]): Shared-memory atomic counter to poll. - threshold (
Int32): Value the counter must reach before returning.