Skip to main content

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)