12 lines
336 B
C
12 lines
336 B
C
|
|
// tiny_mailbox.h - Publish Mailbox box (Box Theory)
|
||
|
|
#pragma once
|
||
|
|
#include <stdint.h>
|
||
|
|
#include <stdatomic.h>
|
||
|
|
#include "hakmem_tiny_superslab.h"
|
||
|
|
|
||
|
|
// API: register/publish/fetch
|
||
|
|
void tiny_mailbox_register(int class_idx);
|
||
|
|
void tiny_mailbox_publish(int class_idx, SuperSlab* ss, int slab_idx);
|
||
|
|
uintptr_t tiny_mailbox_fetch(int class_idx);
|
||
|
|
|