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β
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!