Netplex message boxes
This plugin implements a message box, following a simple model: Receivers wait until messages are put into the box. Senders wait until the box is free again.
This is actually an extension of [root:Netplex_sharedvar], and the same caveats apply.
How to use this module:
module Msg_type = struct type t = <some_type> end
module Mbox_type = Netplex_mbox.Make_mbox_type(Msg_type)
let box = Mbox_type.create "my_box" let msg = Mbox_type.receive box
The type of mailboxes
mbox with messages of type
The type of messages
The type of the mailboxes
Creates a new mailbox with the passed name, or opens an existing mailbox. Names are global to the whole Netplex process system.