projects
/
winnie
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added memory allocator
[winnie]
/
src
/
shalloc.h
diff --git
a/src/shalloc.h
b/src/shalloc.h
index
ce9d184
..
2236b27
100644
(file)
--- a/
src/shalloc.h
+++ b/
src/shalloc.h
@@
-1,10
+1,12
@@
#ifndef SHALLOC_H_
#define SHALLOC_H_
#ifndef SHALLOC_H_
#define SHALLOC_H_
+#include <cstring>
+
bool init_shared_memory();
void destroy_shared_memory();
bool init_shared_memory();
void destroy_shared_memory();
-void *shmalloc(size_t bytes);
-void shmfree(void *ptr);
+void *sh_malloc(size_t bytes);
+void sh_free(void *ptr);
#endif // SHALLOC_H_
#endif // SHALLOC_H_