Added work on making namespaces threadsafe.
This commit is contained in:
parent
154cda8da3
commit
1afb1b9fad
38 changed files with 1074 additions and 517 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue