SequentialMailboxes
public struct SequentialMailboxes<
Message: MergeableMessage,
Graph: GraphProtocol
>: MailboxesProtocol where Graph.VertexId: IdIndexable
A non-concurrent table-based mailbox implementation.
-
Initializes
self
for a given graph size.Declaration
Swift
public init(vertexCount: Int)
-
A mailbox that merges messages together.
See moreDeclaration
Swift
public struct Mailbox : MailboxProtocol
-
Transfers messages that were previously sent into the inboxes of the verticies.
Declaration
Swift
public mutating func deliver() -> Bool
-
Initialize mailboxes for
graph
formessageType
messages.This initializer helps the type inference algorithm along.
Declaration
Swift
public init<SequentialGraph: ParallelGraph & VertexListGraph>( for graph: __shared SequentialGraph, sending messageType: Type<Message> = .init() ) where SequentialGraph.ParallelProjection == Graph