8 #ifndef __SOLAR_CAPTURE_MAILBOX_H__
9 #define __SOLAR_CAPTURE_MAILBOX_H__
34 struct sc_thread* thread);
59 const char* name_opt);
int sc_mailbox_alloc(struct sc_mailbox **mb_out, const struct sc_attr *attr, struct sc_thread *thread)
Allocate a mailbox.
void sc_mailbox_send(struct sc_mailbox *mailbox, struct sc_packet *packet)
Send a packet through a mailbox to another thread.
int sc_mailbox_set_recv(struct sc_mailbox *mailbox, struct sc_node *node, const char *name_opt)
Connect a mailbox to a node.
struct sc_node * sc_mailbox_get_send_node(struct sc_mailbox *mailbox)
Return a mailbox's "send node".
int sc_mailbox_poll(struct sc_mailbox *mailbox, struct sc_packet_list *list)
Poll a mailbox.
Representation of a packet.
Definition: ext_packet.h:56
void sc_mailbox_send_list(struct sc_mailbox *mailbox, struct sc_packet_list *list)
Send a list of packets through a mailbox to another thread.
A list of packets or packet buffers.
Definition: ext_packet_list.h:14
int sc_mailbox_connect(struct sc_mailbox *mb1, struct sc_mailbox *mb2)
Connect a pair of mailboxes.
Description of a node.
Definition: ext_node.h:17