IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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

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, Deinitable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

Methods

__init__

def __init__(consumer_mbars: Pointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], producer_mbars: Pointer[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)