6 #define POOL_SIZE 16777216
7 #define BLOCK_SIZE 1024
9 static unsigned char *pool;
10 static std::map<unsigned char*, size_t> alloc_sizes;
13 bool init_shared_memory()
15 if(!(pool = (unsigned char *)malloc(POOL_SIZE))) {
20 void destroy_shared_memory()
22 //TODO print statistics
26 // an zitaei 45 mb 8a vriskw posa blocks kai meta
27 // 8a psaxnw tosa sunexomena bits sto bitmap
28 // an den exei return 0