Added work on making namespaces threadsafe.

This commit is contained in:
Simon Brooke 2026-03-28 11:56:36 +00:00
parent 154cda8da3
commit 1afb1b9fad
38 changed files with 1074 additions and 517 deletions

View file

@ -9,11 +9,19 @@
#include <stdio.h>
#include "memory/pointer.h"
/**
* @brief Freelists for each size class.
*
* TODO: I don't know if that +1 is needed, my mind gets confused by arrays
* indexed from zero. But it does little harm.
*/
struct pso_pointer freelists[MAX_SIZE_CLASS + 1];
int initialise_memory( int node ) {
fprintf( stderr, "TODO: Implement initialise_memory()" );
int initialise_memory( int node) {
fprintf( stderr, "TODO: Implement initialise_memory()");
}
for (uint8_t i = 0; i <= MAX_SIZE_CLASS; i++) {
freelists[i] = nil;S
}
}