Mojo struct
SpinWaiter
A proxy for the C++ runtime's SpinWaiter type.
Fieldsβ
- βstorage (
UnsafePointer[NoneType, 0, 0, alignof[::AnyType,__mlir_type.!kgen.target]() if triple_is_nvidia_cuda() else 1]
): Pointer to the underlying SpinWaiter instance.
Implemented traitsβ
AnyType
Methodsβ
__init__
β
__init__(inout self: Self)
Initializes a SpinWaiter instance.
__del__
β
__del__(owned self: Self)
Destroys the SpinWaiter instance.
wait
β
wait(self: Self)
Blocks the current task for a duration determined by the underlying policy.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?