mallockit 0.1.0

A framework for building malloc implementations in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
mod worker_group;

pub use worker_group::WorkerGroup;

#[derive(Debug, Clone, Copy, Eq, PartialEq)]
pub struct WorkerId(pub(super) usize);

pub trait Worker: Sized + 'static {
    fn new(id: WorkerId) -> Self;
    fn init(&'static mut self, _group: &'static WorkerGroup<Self>) {}
    fn run(&'static mut self);
}