package matryoshka:examples/block4

⌘K
Ctrl+K
or
/

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    Mailbox ¶

    Mailbox :: ^matryoshka.PolyNode

    MayItem ¶

    MayItem :: runtime.Maybe($T=^PolyNode)

    PolyNode ¶

    PolyNode :: matryoshka.PolyNode
     

    Aliases for matryoshka core types.

    Pool ¶

    Pool :: ^matryoshka.PolyNode

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    example_mailbox_as_item ¶

    example_mailbox_as_item :: proc() -> bool {…}
     

    example_mailbox_as_item demonstrates passing a Mailbox as a payload item.

    A Mailbox (mb_payload) is wrapped as MayItem, enqueued into mb_channel, received, then closed and disposed — showing that infrastructure items follow the same ownership rules as data items.

    Flow: sender: m = (^PolyNode)(mb_payload) → mbox_send(mb_channel, &m) receiver: mbox_wait_receive(mb_channel, &mi) → Mailbox(ptr) → close → dispose

    example_pool_as_item ¶

    example_pool_as_item :: proc() -> bool {…}
     

    example_pool_as_item demonstrates passing a Pool as a payload item.

    A Pool (p_payload) is wrapped as MayItem, enqueued into mb_channel, received, then closed and disposed — showing that infrastructure items follow the same ownership rules as data items.

    Flow: sender: m = (^PolyNode)(p_payload) → mbox_send(mb_channel, &m) receiver: mbox_wait_receive(mb_channel, &mi) → Pool(ptr) → close → dispose

    Procedure Groups

    This section is empty.

    Source Files