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 struct
Bars
struct Bars
Fields
- base (
SPtr[SharedMemBarrier]):
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
__init__
def __init__(smem: SPtr[UInt8], off: Int) -> Self
full
empty
def empty[ring: Int, depth: Int](self, slot: Int32) -> SPtr[SharedMemBarrier]
Returns:
wait_full
wait_empty
init_ring
def init_ring[base: Int, depth: Int, full: Int, empty: Int](self)