Skip to main content

Mojo struct

CvtToMMAPipline

@register_passable(trivial) struct CvtToMMAPipline[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

comptime members

__copyinit__is_trivial

comptime __copyinit__is_trivial = True

__del__is_trivial

comptime __del__is_trivial = True

__moveinit__is_trivial

comptime __moveinit__is_trivial = True

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?