Mojo struct
CvtToMMAPipeline
struct CvtToMMAPipeline[num_stages: Int, num_producer: Int, num_consumer: Int]
Fieldsβ
- βproducer_mbars (
MBarType): - βconsumer_mbars (
MBarType): - βstate (
PipelineState[num_stages]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
__init__(producer_mbars: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], consumer_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, elect: Int32)
stepβ
step(mut self)
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!