// free_local_box.h - Box: Same-thread free to freelist (first-free publishes)
#pragma once
#include <stdint.h>
#include "hakmem_tiny_superslab.h"
// Perform same-thread freelist push. On first-free (prev==NULL), publishes via Ready/Mailbox.
// Returns: 1 if slab transitioned to EMPTY (used=0), 0 otherwise.
int tiny_free_local_box(SuperSlab* ss, int slab_idx, TinySlabMeta* meta, void* ptr, uint32_t my_tid);