aboutsummaryrefslogtreecommitdiffstats
path: root/doc/README.wmem
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-12-18 23:25:11 +0000
committerEvan Huus <eapache@gmail.com>2012-12-18 23:25:11 +0000
commit8b69e3ee22b83c24c81ccef64c1e73a503ce0bc0 (patch)
treecb5251a1afad227912b3fdd7c05b0b81049f92b6 /doc/README.wmem
parent0461a705c0a6e4fb35b8dac32abd81ac98c32879 (diff)
Use 'new' instead of 'create' a consistent manner.
svn path=/trunk/; revision=46601
Diffstat (limited to 'doc/README.wmem')
-rw-r--r--doc/README.wmem12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/README.wmem b/doc/README.wmem
index d33bea1d71..d7381ac647 100644
--- a/doc/README.wmem
+++ b/doc/README.wmem
@@ -87,7 +87,7 @@ to the lifetime of the pinfo struct.
2.4 Stack
- - wmem_create_stack
+ - wmem_stack_new
- wmem_stack_push
- wmem_stack_pop
- wmem_stack_peek
@@ -95,7 +95,7 @@ to the lifetime of the pinfo struct.
2.5 Slab
- - wmem_create_slab
+ - wmem_slab_new
- wmem_slab_alloc
- wmem_slab_free
@@ -123,12 +123,12 @@ The currently available allocators are:
3.2 Creating a Pool
To create a pool, include the header for the type of allocator you want to use
-and call the create function available in that header. For example,
+and call the 'new' function available in that header. For example,
#include "wmem/wmem_allocator_glib.h"
wmem_allocator_t *myPool;
- myPool = wmem_create_glib_allocator();
+ myPool = wmem_glib_allocator_new();
From here on in, you don't need to remember which type of allocator you used
(although allocator authors are welcome to expose additional allocator-specific
@@ -149,7 +149,7 @@ with a call to the function wmem_destroy_allocator(). For example:
wmem_allocator_t *myPool;
- myPool = wmem_create_glib_allocator();
+ myPool = wmem_glib_allocator_new();
/* Allocate some memory in myPool ... */
@@ -170,7 +170,7 @@ the pool would otherwise be scoped to a single iteration of a loop. For example:
wmem_allocator_t *myPool;
- myPool = wmem_create_glib_allocator();
+ myPool = wmem_glib_allocator_new();
for (...) {
/* Allocate some memory in myPool ... */