mailbox.c
Include dependency graph for mailbox.c:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"3" [label="stdbool.h" tooltip="stdbool.h"]
"6" [label="stdatomic.h" tooltip="stdatomic.h"]
"20" [label="atom.h" tooltip="atom.h"]
"29" [label="trace.h" tooltip="trace.h"]
"8" [label="assert.h" tooltip="assert.h"]
"22" [label="synclist.h" tooltip="synclist.h"]
"11" [label="stdint.h" tooltip="stdint.h"]
"16" [label="stdlib.h" tooltip="stdlib.h"]
"17" [label="scheduler.h" tooltip="scheduler.h"]
"18" [label="context.h" tooltip="context.h"]
"12" [label="utils.h" tooltip="utils.h"]
"21" [label="atom_table.h" tooltip="atom_table.h"]
"7" [label="term_typedef.h" tooltip="term_typedef.h"]
"13" [label="stddef.h" tooltip="stddef.h"]
"9" [label="limits.h" tooltip="limits.h"]
"26" [label="refc_binary.h" tooltip="refc_binary.h"]
"25" [label="string.h" tooltip="string.h"]
"1" [label="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/mailbox.c" tooltip="/home/runner/work/AtomVM/AtomVM/src/libAtomVM/mailbox.c" fillcolor="#BFBFBF"]
"2" [label="mailbox.h" tooltip="mailbox.h"]
"24" [label="term.h" tooltip="term.h"]
"15" [label="erl_nif.h" tooltip="erl_nif.h"]
"27" [label="resources.h" tooltip="resources.h"]
"5" [label="smp.h" tooltip="smp.h"]
"19" [label="globalcontext.h" tooltip="globalcontext.h"]
"14" [label="memory.h" tooltip="memory.h"]
"23" [label="stdio.h" tooltip="stdio.h"]
"28" [label="timer_list.h" tooltip="timer_list.h"]
"10" [label="inttypes.h" tooltip="inttypes.h"]
"4" [label="list.h" tooltip="list.h"]
"20" -> "11" [dir=forward tooltip="include"]
"20" -> "16" [dir=forward tooltip="include"]
"22" -> "4" [dir=forward tooltip="include"]
"22" -> "23" [dir=forward tooltip="include"]
"22" -> "5" [dir=forward tooltip="include"]
"17" -> "18" [dir=forward tooltip="include"]
"17" -> "19" [dir=forward tooltip="include"]
"18" -> "19" [dir=forward tooltip="include"]
"18" -> "4" [dir=forward tooltip="include"]
"18" -> "2" [dir=forward tooltip="include"]
"18" -> "5" [dir=forward tooltip="include"]
"18" -> "24" [dir=forward tooltip="include"]
"18" -> "28" [dir=forward tooltip="include"]
"12" -> "13" [dir=forward tooltip="include"]
"21" -> "20" [dir=forward tooltip="include"]
"7" -> "8" [dir=forward tooltip="include"]
"7" -> "9" [dir=forward tooltip="include"]
"7" -> "10" [dir=forward tooltip="include"]
"7" -> "11" [dir=forward tooltip="include"]
"26" -> "3" [dir=forward tooltip="include"]
"26" -> "16" [dir=forward tooltip="include"]
"26" -> "4" [dir=forward tooltip="include"]
"26" -> "27" [dir=forward tooltip="include"]
"26" -> "5" [dir=forward tooltip="include"]
"1" -> "2" [dir=forward tooltip="include"]
"1" -> "13" [dir=forward tooltip="include"]
"1" -> "14" [dir=forward tooltip="include"]
"1" -> "17" [dir=forward tooltip="include"]
"1" -> "22" [dir=forward tooltip="include"]
"1" -> "29" [dir=forward tooltip="include"]
"2" -> "3" [dir=forward tooltip="include"]
"2" -> "4" [dir=forward tooltip="include"]
"2" -> "5" [dir=forward tooltip="include"]
"2" -> "7" [dir=forward tooltip="include"]
"2" -> "12" [dir=forward tooltip="include"]
"24" -> "3" [dir=forward tooltip="include"]
"24" -> "11" [dir=forward tooltip="include"]
"24" -> "23" [dir=forward tooltip="include"]
"24" -> "16" [dir=forward tooltip="include"]
"24" -> "25" [dir=forward tooltip="include"]
"24" -> "14" [dir=forward tooltip="include"]
"24" -> "26" [dir=forward tooltip="include"]
"24" -> "12" [dir=forward tooltip="include"]
"24" -> "7" [dir=forward tooltip="include"]
"15" -> "7" [dir=forward tooltip="include"]
"27" -> "16" [dir=forward tooltip="include"]
"27" -> "15" [dir=forward tooltip="include"]
"27" -> "4" [dir=forward tooltip="include"]
"27" -> "14" [dir=forward tooltip="include"]
"5" -> "3" [dir=forward tooltip="include"]
"5" -> "6" [dir=forward tooltip="include"]
"19" -> "11" [dir=forward tooltip="include"]
"19" -> "20" [dir=forward tooltip="include"]
"19" -> "21" [dir=forward tooltip="include"]
"19" -> "15" [dir=forward tooltip="include"]
"19" -> "4" [dir=forward tooltip="include"]
"19" -> "5" [dir=forward tooltip="include"]
"19" -> "22" [dir=forward tooltip="include"]
"19" -> "24" [dir=forward tooltip="include"]
"19" -> "28" [dir=forward tooltip="include"]
"14" -> "15" [dir=forward tooltip="include"]
"14" -> "7" [dir=forward tooltip="include"]
"14" -> "12" [dir=forward tooltip="include"]
"14" -> "11" [dir=forward tooltip="include"]
"14" -> "16" [dir=forward tooltip="include"]
"28" -> "3" [dir=forward tooltip="include"]
"28" -> "11" [dir=forward tooltip="include"]
"28" -> "4" [dir=forward tooltip="include"]
}](../../../_images/graphviz-2d71e3b00873b80835e63d82dabb7a0f1b0b4edb.png)
Defines
-
ADDITIONAL_PROCESSING_MEMORY_SIZE
Functions
- _Static_assert (offsetof(struct Message, base)+offsetof(struct MailboxMessage, next)==offsetof(HeapFragment, next) ? 1 :0, "Message.base.next doesn't match HeapFragment.next")
- _Static_assert (offsetof(struct Message, base)+offsetof(struct MailboxMessage, type)==offsetof(HeapFragment, heap_end) ? 1 :0, "Message.base.type doesn't match HeapFragment.heap_end")
- _Static_assert (offsetof(struct Message, message)==offsetof(HeapFragment, storage) ? 1 :0, "Message.message doesn't match HeapFragment.storage[0]")
- _Static_assert (offsetof(struct Message, heap_end)==offsetof(HeapFragment, storage[1]) ? 1 :0, "Message.heap_end doesn't match HeapFragment.storage[1]")
- _Static_assert (sizeof(struct Message)==sizeof(HeapFragment)+2 *sizeof(term) ? 1 :0, "sizeof(Message) doesn't match sizeof(HeapFragment) + 2 terms")
- _Static_assert (offsetof(struct TermSignal, base)+offsetof(struct MailboxMessage, next)==offsetof(HeapFragment, next) ? 1 :0, "TermSignal.base.next doesn't match HeapFragment.next")
- _Static_assert (offsetof(struct TermSignal, base)+offsetof(struct MailboxMessage, type)==offsetof(HeapFragment, heap_end) ? 1 :0, "TermSignal.base.type doesn't match HeapFragment.heap_end")
- _Static_assert (offsetof(struct TermSignal, signal_term)==offsetof(HeapFragment, storage) ? 1 :0, "TermSignal.signal_term doesn't match HeapFragment.storage[0]")
- _Static_assert (offsetof(struct TermSignal, heap_end)==offsetof(HeapFragment, storage[1]) ? 1 :0, "TermSignal.heap_end doesn't match HeapFragment.storage[1]")
- _Static_assert (sizeof(struct TermSignal)==sizeof(HeapFragment)+2 *sizeof(term) ? 1 :0, "sizeof(TermSignal) doesn't match sizeof(HeapFragment) + 2 terms")
-
HeapFragment *mailbox_message_to_heap_fragment(void *m, term *heap_end)
-
void mailbox_message_dispose(MailboxMessage *m, Heap *heap)
-
static void mailbox_post_message(Context *c, MailboxMessage *m)
-
void mailbox_send_term_signal(Context *c, enum MessageType type, term t)
-
void mailbox_send_built_in_atom_signal(Context *c, enum MessageType type, term atom)
-
void mailbox_send_built_in_atom_request_signal(Context *c, enum MessageType type, int32_t pid, term atom)
-
void mailbox_send_ref_signal(Context *c, enum MessageType type, uint64_t ref_ticks)
-
void mailbox_send_empty_body_signal(Context *c, enum MessageType type)
-
MailboxMessage *mailbox_process_outer_list(Mailbox *mbox)
-
MailboxMessage *mailbox_take_message(Mailbox *mbox)