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,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
__init__(consumer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], producer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self
initβ
init(self)
producer_mbarβ
producer_mbar(self) -> MBarType
Returns:
MBarType
consumer_mbarβ
consumer_mbar(self) -> MBarType
Returns:
MBarType
producer_acquireβ
producer_acquire(self)
consumer_waitβ
consumer_wait(self)
producer_commitβ
producer_commit(mut self)
consumer_releaseβ
consumer_release(mut self)
stepβ
step(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!