Skip to main content

Mojo struct

MBarPipeline

struct MBarPipeline[number_of_stages: Int]

Fields​

  • ​mbar (MBarType):
  • ​state (PipelineState[MBarPipeline[number_of_stages].num_stages]):

Implemented traits​

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable

comptime members​

num_stages​

comptime num_stages = number_of_stages

Methods​

__init__​

__init__(mbar: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED]) -> Self

init​

init[*, num_producer: UInt32 = UInt32(1), num_consumer: UInt32 = UInt32(1)](self)

num_mbars​

static num_mbars() -> UInt32

Returns:

UInt32