summaryrefslogtreecommitdiff
path: root/src/shared/mempool.h
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-10-24 15:30:18 +0200
committerMichal Schmidt <mschmidt@redhat.com>2014-10-30 19:50:50 +0100
commit52fc5ce38c871e8d75392592919c66ab7f7575dd (patch)
tree7c844b1ce11e0a2410a0b1eef2563fde090c4438 /src/shared/mempool.h
parentb5de6d984296c9446ba0d2d32fd3248f453208aa (diff)
mempool: add a zeroing alloc function
Add mempool_alloc0_tile(). It's like mempool_alloc_tile(), but it initializes the allocated tile's memory to zero.
Diffstat (limited to 'src/shared/mempool.h')
-rw-r--r--src/shared/mempool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/mempool.h b/src/shared/mempool.h
index 8b0bf381bf..42f473bee1 100644
--- a/src/shared/mempool.h
+++ b/src/shared/mempool.h
@@ -34,6 +34,7 @@ struct mempool {
};
void* mempool_alloc_tile(struct mempool *mp);
+void* mempool_alloc0_tile(struct mempool *mp);
void mempool_free_tile(struct mempool *mp, void *p);
#define DEFINE_MEMPOOL(pool_name, tile_type, alloc_at_least) \