projects
/
winnie
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c593fb
)
removed comments
author
Eleni Maria Stea
<elene.mst@gmail.com>
Tue, 12 Mar 2013 00:34:05 +0000
(
02:34
+0200)
committer
Eleni Maria Stea
<elene.mst@gmail.com>
Tue, 12 Mar 2013 00:34:05 +0000
(
02:34
+0200)
src/shalloc.cc
patch
|
blob
|
history
diff --git
a/src/shalloc.cc
b/src/shalloc.cc
index
fd5809e
..
7122505
100644
(file)
--- a/
src/shalloc.cc
+++ b/
src/shalloc.cc
@@
-61,11
+61,6
@@
bool init_shared_memory()
shm_unlink(SHMNAME);
- //TODO delete it
- /*if(!(pool = (unsigned char *)malloc(POOL_SIZE))) {
- return false;
- }*/
-
for(int i=0; i<BITMAP_SIZE; i++) {
bitmap[i] = 0;
}
@@
-79,7
+74,6
@@
bool init_shared_memory()
void destroy_shared_memory()
{
print_stats();
- //free(pool); //TODO DELETE it
if(munmap(pool, POOL_SIZE) == -1) {
fprintf(stderr, "Failed to unmap shared memory: %s\n", strerror(errno));
}