Browse Source

Add mempool_align_page_size implementation for MEMPOOL_MALLOC fallback

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent
commit
a545ef6e75
  1. 5
      src/common/mempool.c

5
src/common/mempool.c

@ -24,6 +24,7 @@ mempool_ptr mempool_alloc(gsize size) {
}
void mempool_free(mempool_ptr ptr, gsize size) {
UNUSED(size);
if (!ptr.data) return;
free(ptr.data);
}
@ -31,6 +32,10 @@ void mempool_free(mempool_ptr ptr, gsize size) {
void mempool_cleanup() {
}
gsize mempool_align_page_size(gsize size) {
return size;
}
#else /* MP_MALLOC */
/*

Loading…
Cancel
Save