package matryoshka:examples/block4
Index
Constants (0)
This section is empty.
Variables (0)
This section is empty.
Procedures (2)
Procedure Groups (0)
This section is empty.
Types
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.