For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo struct
TMAtoCvtPipeline
struct TMAtoCvtPipeline[num_kv_stages: Int, num_producer: Int, num_consumer: Int]
Fieldsβ
- βconsumer_mbars (
MBarType): - βproducer_mbars (
MBarType): - βstate (
PipelineState[num_kv_stages]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDeletable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
def __init__(consumer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], producer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
initβ
def init(self)
producer_mbarβ
def producer_mbar(self) -> MBarType
Returns:
MBarType
consumer_mbarβ
def consumer_mbar(self) -> MBarType
Returns:
MBarType
producer_acquireβ
def producer_acquire(self)
consumer_waitβ
def consumer_wait(self)
producer_commitβ
def producer_commit(mut self)
consumer_releaseβ
def consumer_release(mut self)
stepβ
def step(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!