#include <Malloc_T.h>
|
| | ACE_Malloc (const ACE_TCHAR *pool_name=0) |
| | ACE_Malloc (const ACE_TCHAR *pool_name, const ACE_TCHAR *lock_name, const ACE_MEM_POOL_OPTIONS *options=0) |
| | ACE_Malloc_T (const ACE_TCHAR *pool_name=0) |
| | ~ACE_Malloc_T () |
| | Destructor.
|
| int | ref_counter () |
| | Get Reference counter.
|
| int | release (int close=0) |
| int | remove () |
| | Releases resources allocated by this object.
|
| void * | malloc (size_t nbytes) |
| | Allocate nbytes, but don't give them any initial value.
|
| void * | calloc (size_t nbytes, char initial_value='\0') |
| | Allocate nbytes, giving them initial_value.
|
| void | free (void *ptr) |
| MEMORY_POOL & | memory_pool () |
| | Returns a reference to the underlying memory pool.
|
| int | bind (const char *name, void *pointer, int duplicates=0) |
| int | trybind (const char *name, void *&pointer) |
| int | find (const char *name, void *&pointer) |
| int | unbind (const char *name) |
| int | sync (ssize_t len=-1, int flags=MS_SYNC) |
| int | protect (ssize_t len=-1, int prot=PROT_RDWR) |
| ssize_t | avail_chunks (size_t size) const |
| ACE_LOCK & | mutex () |
| void | dump () const |
| | Dump the state of an object.
|
| void * | base_addr () |
| | Return cb_ptr value.
|
| int | bad () |
◆ ACE_Malloc() [1/2]
Initialize ACE_Malloc. This constructor passes pool_name to initialize the memory pool, and uses ACE::basename() to automatically extract out the name used for the underlying lock name (if necessary). Note that pool_name should be located in a directory with the appropriate visibility and protection so that all processes that need to access it can do so.
◆ ACE_Malloc() [2/2]
Initialize ACE_Malloc. This constructor passes pool_name to initialize the memory pool, and uses lock_name to automatically extract out the name used for the underlying lock name (if necessary). In addition, options is passed through to initialize the underlying memory pool. Note that pool_name should be located in a directory with the appropriate visibility and protection so that all processes that need to access it can do so.
The documentation for this class was generated from the following files: